
I needed to move a site from the sub-directory /wordpress/to the new one /blog/. I made all the possible efforts and finally I got the solution.. Below is the solution:
- Change the settings of the URL in two places in the General settings,
- Save,
- Go change the name of the directory using FTP (from wordpress to blog),
- Do a search and replace for /wordpress/ to /blog/.
I uses the .htaccess file. I was hoping that the Redirection plugin could do it and it probably could, but it results in heavy data storage in database that results in slow loading of the website.. You just need to add the following code in your .htaccess file.
RewriteEngine OnJust use the above code and you are done...
RewriteBase /wordpress/
RewriteRule ^(.*)$ http://localhost/blog/$1 [L,R=301]
