Steps:
- Log-in as admin. Go to settings-> General panel. In the box for Site address (URL): change the address to the new directory's URL. Example: http://solsarc.org/school-and-therapy
- Go to http://goo.gl/f85WZj and follow the steps mentioned under the heading "When Your Domain Name or URLs Change" to safely change all instances of your URLs
- Change the name of the folder in which WordPress resides (e.g from 'wordpress' to 'school-and-therapy')
- Generate a new XML sitemap for your website and submit it to Google Webmasters
- Put a 301 redirect for all http://solsarc.org/wordpress/* pages. To do that, create a .htaccess folder in the root of your web host(note: WordPress folder has it's own .htaccess file, we are not talking about that) and put the following in it , replacing 'wordpress' and 'school-and-therapy' with your own folder names:
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^wordpress/(.*)$ /school-and-therapy/$1 [R=301,NC,L]
RewriteEngine On
RewriteRule ^wordpress/(.*)$ /school-and-therapy/$1 [R=301,NC,L]
That's it! Google(and anybody else) will still be able to use the old address(with old folder name) and still find exactly same pages at new address(that is, in folder with changed name).
No comments:
Post a Comment