Forum Moderators: phranque
[mywebsite.com...]
[mywebsite.com...]
[mywebsite.com...]
I want to safely rename catname and this category has page rank 5. Is it good to move all contents by using HTTP 301 .htaccess? If so would you please write one line of mod_rewrite code for me?
Thanks
More importantly, do I assume:
1. you want to change the URLs, but leave the files in the same place on the server? or,
2. you want to move the files on the server, but keep the same URLs?
Both are possible, and the question does not make that clear.
[mywebsite.com...]
[mywebsite.com...]
[mywebsite.com...]
We're also happy when those who have learned something here come back to help others.
Assuming that you already have other working rewrite rules in your root .htaccess file, you might start by testing something like this:
RewriteRule ^categories/[i]old-catname[/i](.*)$ http://www.example.com/categories/[i]new-catname[/i]$1 [R=301,L]
Jim