<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>John Nasta &#187; urls</title>
	<atom:link href="http://johnnasta.com/blog/tags/urls/feed/" rel="self" type="application/rss+xml" />
	<link>http://johnnasta.com/blog</link>
	<description>any major dude with half a heart surely will tell you my friend</description>
	<lastBuildDate>Thu, 29 Dec 2011 21:00:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Changing The URL Of Your WordPress Site</title>
		<link>http://johnnasta.com/blog/2010/wordpress/changing-the-url-of-your-wordpress-site/</link>
		<comments>http://johnnasta.com/blog/2010/wordpress/changing-the-url-of-your-wordpress-site/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 20:59:10 +0000</pubDate>
		<dc:creator>John Nasta</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[access]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[domains]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[upgrades]]></category>
		<category><![CDATA[upgrading]]></category>
		<category><![CDATA[urls]]></category>
		<category><![CDATA[webmasters]]></category>
		<category><![CDATA[websites]]></category>

		<guid isPermaLink="false">http://johnnasta.com/blog/?p=643</guid>
		<description><![CDATA[WordPress web site owners often come to realize that they want to change the URL of their web site, whether it is because they want the site to be accessible from the root folder (without using a redirect) or because they want to change the domain name of the web site. If you&#8217;d like to [...]
Related posts:<ol>
<li><a href='http://johnnasta.com/blog/2009/wordpress/accessing-your-wordpress-site-from-the-root-directory-folder/' rel='bookmark' title='Accessing Your WordPress Site From The Root Folder'>Accessing Your WordPress Site From The Root Folder</a> <small>Update June 06, 2010 &#8211; This is an old post and I actually never do...</small></li>
<li><a href='http://johnnasta.com/blog/2009/internet/seo-noindex-nofollow-noodp-noydir-noarchive-robotstxt-exclude-sites-from-search-engines/' rel='bookmark' title='Excluding Your Web Site From Search Engines'>Excluding Your Web Site From Search Engines</a> <small>People often write about how to increase your search engine ranking by using noindex and...</small></li>
<li><a href='http://johnnasta.com/blog/2009/wordpress/wordpresscom-vs-wordpressorg/' rel='bookmark' title='WordPress.com vs. WordPress.org'>WordPress.com vs. WordPress.org</a> <small>Finally, a post about Wordpress for people who have never used it. Are you "wp-curious"?...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>WordPress web site owners often come to realize that they want to change the URL of their web site, whether it is because they want the site to be accessible from the root folder (without using a redirect) or because they want to change the domain name of the web site.</p>
<p>If you&#8217;d like to do this, first ask yourself if you feel comfortable editing the code in your theme files, and if you feel comfortable using FTP to upload the edits to your web server. Remember to use a plain-text editor to make all of your edits, not a word processing program like MS Word. If you can do those things without hesitation, you&#8217;ve made it over the first hurdle.</p>
<p><span id="more-643"></span></p>
<p>The next thing you have to do is decide whether you are going to make the domain name point to your WordPress folder or if you are going to copy the site files from your WordPress folder to the folder that the domain name points to.</p>
<ul>
<li>If the domain name is changing, you can often point the new domain name to the WordPress folder when you add it in your hosting control panel, and not have to copy or move any files at all.</li>
<li>If the domain name is not changing but the path to the site is (e.g. moving WordPress to the root folder), and/or you don&#8217;t know how to point your domain to a specific folder at the hosting level, you can simply copy all of your WordPress site files via FTP to the folder that the domain name points to.</li>
</ul>
<h3>Two things to do before you upload your site files</h3>
<p><strong>Check the .htaccess file in the WordPress folder:</strong> WordPress usually writes entries to a .htaccess file in the main WordPress folder. If you are moving the site from a sub-folder to the root or vice-versa, you will have to edit this file. If your site is in a sub-folder called /blog, the .htaccess file in your WordPress folder will contain these lines:</p>
<p><code># BEGIN WordPress<br />
&lt;IfModule mod_rewrite.c&gt;<br />
RewriteEngine On<br />
RewriteBase /blog/<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule . /blog/index.php [L]<br />
&lt;/IfModule&gt;<br />
# END WordPress</code></p>
<p>If your site is going to be in the root folder, the references to the sub-folder need to be removed, making it look like this:</p>
<p><code># BEGIN WordPress<br />
&lt;IfModule mod_rewrite.c&gt;<br />
RewriteEngine On<br />
RewriteBase /<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule . /index.php [L]<br />
&lt;/IfModule&gt;<br />
# END WordPress</code></p>
<p><strong>Add two lines of code to the functions.php file of the Default theme:</strong> As shown in the WordPress Codex article <a href="http://codex.wordpress.org/Changing_The_Site_URL#Quick_fix_method" target="_blank">Changing The Site URL</a>, you can add these two lines of code to the top of your functions.php file to tell the database the new site URL:</p>
<p><code>define('WP_HOME','http://example.com');<br />
define('WP_SITEURL','http://example.com');</code></p>
<p>Replace example.com with your actual domain name and any sub-folder name that points to your site. <strong>The only reason I suggest doing this to the functions.php of the Default theme is so that you don&#8217;t have to mess with your active theme&#8217;s files.</strong> If you prefer to edit the functions.php of your active theme, that will work too. It is advisable to make backups of your functions.php file and your WordPress database at this time.</p>
<p>If you have chosen to edit the functions.php of the Default theme and that is not your active theme, go to your site&#8217;s admin <strong>at the old URL</strong> and activate the Default theme. If you edited the functions.php of your active theme, you can skip this step.</p>
<p>Now that you&#8217;ve done your edits, you can upload all of the necessary files to the proper folder. If the folder is not changing, you only need to upload the new functions.php, and possibly the new .htaccess file. If you are changing the folder, upload the entire site to the new folder.</p>
<p>Now simply go to your site at the new URL. It should work. Assuming it works fine, you can upload the backup version of the functions.php (i.e. one that has not been edited). <strong>It is important to remove those extra lines of code.</strong> Your site is now ready to go.</p>
<p>Additional considerations:</p>
<ul>
<li>If you are using a plugin that references a file in your folder structure such as the Google XML Sitemap Generator or a database backup utility, you may need to change the path in the plugin&#8217;s settings to the new path.</li>
<li>You may also need to change the path to your uploads folder in Settings > Miscellaneous</li>
<li>You may want to use the <a href="http://wordpress.org/extend/plugins/broken-link-checker/" target="_blank">Broken Link Checker</a> plugin to make sure that you don&#8217;t have any broken internal links or redirects in your site caused by the URL change.</li>
<li>If you feel brave and have a lot of internal links that need to be changed, you can use the <a href="http://wordpress.org/extend/plugins/search-and-replace/" target="_blank">Search and Replace</a> plugin to change them all simultaneously.</li>
<li>If you have moved your WordPress site to a new folder on the server, remember to delete the old files.</li>
<li>If you have changed your domain name remember to put in a <strong>.htaccess 301 redirect</strong> from the old location to the new one.</li>
<li>It is advisable to put a <strong>robots.txt</strong> file in your root folder so that search engines will crawl and re-index the site. Google may reject your sitemap if you don&#8217;t have a robots.txt file giving them access to crawl the site.</li>
</ul>
<p>If this seems too difficult for you, you may be interested in my article on <a href="http://johnnasta.com/blog/2009/wordpress/accessing-your-wordpress-site-from-the-root-directory-folder/">Accessing Your WordPress Site From The Root Folder</a>, which explains how a simple .htaccess redirect file can point requests from your root URL to your WordPress folder.</p>
<p>Have fun!</p>
<h6>This article copyright © John Nasta 2010 – All Rights Reserved</h6>
<p>Related posts:<ol>
<li><a href='http://johnnasta.com/blog/2009/wordpress/accessing-your-wordpress-site-from-the-root-directory-folder/' rel='bookmark' title='Accessing Your WordPress Site From The Root Folder'>Accessing Your WordPress Site From The Root Folder</a> <small>Update June 06, 2010 &#8211; This is an old post and I actually never do...</small></li>
<li><a href='http://johnnasta.com/blog/2009/internet/seo-noindex-nofollow-noodp-noydir-noarchive-robotstxt-exclude-sites-from-search-engines/' rel='bookmark' title='Excluding Your Web Site From Search Engines'>Excluding Your Web Site From Search Engines</a> <small>People often write about how to increase your search engine ranking by using noindex and...</small></li>
<li><a href='http://johnnasta.com/blog/2009/wordpress/wordpresscom-vs-wordpressorg/' rel='bookmark' title='WordPress.com vs. WordPress.org'>WordPress.com vs. WordPress.org</a> <small>Finally, a post about Wordpress for people who have never used it. Are you "wp-curious"?...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://johnnasta.com/blog/2010/wordpress/changing-the-url-of-your-wordpress-site/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Accessing Your WordPress Site From The Root Folder</title>
		<link>http://johnnasta.com/blog/2009/wordpress/accessing-your-wordpress-site-from-the-root-directory-folder/</link>
		<comments>http://johnnasta.com/blog/2009/wordpress/accessing-your-wordpress-site-from-the-root-directory-folder/#comments</comments>
		<pubDate>Tue, 09 Jun 2009 17:23:42 +0000</pubDate>
		<dc:creator>John Nasta</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[accessing]]></category>
		<category><![CDATA[folders]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[modifying]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[upgrades]]></category>
		<category><![CDATA[upgrading]]></category>
		<category><![CDATA[urls]]></category>

		<guid isPermaLink="false">http://johnnasta.com/blog/?p=572</guid>
		<description><![CDATA[Update June 06, 2010 &#8211; This is an old post and I actually never do this any more. Please see the comments. Thanks. I see a lot of people asking how to make their WordPress site accessible from the root directory folder. In most standard installations, WordPress is installed in a sub-folder and the only [...]
Related posts:<ol>
<li><a href='http://johnnasta.com/blog/2010/wordpress/changing-the-url-of-your-wordpress-site/' rel='bookmark' title='Changing The URL Of Your WordPress Site'>Changing The URL Of Your WordPress Site</a> <small>WordPress web site owners often come to realize that they want to change the URL...</small></li>
<li><a href='http://johnnasta.com/blog/2009/internet/seo-noindex-nofollow-noodp-noydir-noarchive-robotstxt-exclude-sites-from-search-engines/' rel='bookmark' title='Excluding Your Web Site From Search Engines'>Excluding Your Web Site From Search Engines</a> <small>People often write about how to increase your search engine ranking by using noindex and...</small></li>
<li><a href='http://johnnasta.com/blog/2009/wordpress/wordpresscom-vs-wordpressorg/' rel='bookmark' title='WordPress.com vs. WordPress.org'>WordPress.com vs. WordPress.org</a> <small>Finally, a post about Wordpress for people who have never used it. Are you "wp-curious"?...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Update June 06, 2010 &#8211; This is an old post and I actually never do this any more. Please see the comments. Thanks.</p>
<p>I see a lot of people asking how to make their WordPress site accessible from the root directory folder. In most standard installations, WordPress is installed in a sub-folder and the only way to access the site is to add that sub-folder name to the site&#8217;s URL.</p>
<p>If you read the wordpress.org support forum you&#8217;ll find posts suggesting that you move the WordPress index.php file to the root folder and change a few things in that file. You&#8217;ll also see replies from people who have tried it unsuccessfully.</p>
<p>Here&#8217;s a little trick that will allow you to access your WordPress site from the root URL without moving or modifying any of the WordPress installation files. This method will &#8220;hide&#8221; the WordPress installation&#8217;s folder name when people access your home page but they will see the folder name in URLs when they start clicking around&#8230;</p>
<p><span id="more-572"></span></p>
<p>Check your root folder for a file called .htaccess (note that the dot is before the file name). If there is one, download it. If not, create one with a plain text editor such as Windows Notepad. Make sure that when you save it, the file type is set to &#8220;All Files&#8221; so that your editor doesn&#8217;t try to add an extension onto the file name.</p>
<p>Make sure that these lines are included in your .htaccess file. For this example the root URL is shown as domain.ext and the WordPress folder is shown as wpfolder. You will have to change these values to match your own domain name, extension, and WordPress folder name:</p>
<p><code>RewriteEngine On<br />
Options +FollowSymlinks<br />
RewriteCond %{HTTP_HOST} domain.ext$<br />
RewriteCond %{REQUEST_URI} !wpfolder/<br />
RewriteRule ^(.*)$ wpfolder/$1<br />
</code></p>
<p>Upload this file to the root directory of your web server as a plain text file. You&#8217;re done!</p>
<p>Now go to Google Webmaster Tools and let them know the &#8220;preferred URL&#8221; of your home page so you don&#8217;t get penalized for duplicate content.</p>
<h6>This article copyright © John Nasta 2009 &#8211; All Rights Reserved</h6>
<p>Related posts:<ol>
<li><a href='http://johnnasta.com/blog/2010/wordpress/changing-the-url-of-your-wordpress-site/' rel='bookmark' title='Changing The URL Of Your WordPress Site'>Changing The URL Of Your WordPress Site</a> <small>WordPress web site owners often come to realize that they want to change the URL...</small></li>
<li><a href='http://johnnasta.com/blog/2009/internet/seo-noindex-nofollow-noodp-noydir-noarchive-robotstxt-exclude-sites-from-search-engines/' rel='bookmark' title='Excluding Your Web Site From Search Engines'>Excluding Your Web Site From Search Engines</a> <small>People often write about how to increase your search engine ranking by using noindex and...</small></li>
<li><a href='http://johnnasta.com/blog/2009/wordpress/wordpresscom-vs-wordpressorg/' rel='bookmark' title='WordPress.com vs. WordPress.org'>WordPress.com vs. WordPress.org</a> <small>Finally, a post about Wordpress for people who have never used it. Are you "wp-curious"?...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://johnnasta.com/blog/2009/wordpress/accessing-your-wordpress-site-from-the-root-directory-folder/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
	</channel>
</rss>

