Forum Moderators: phranque
There are about 120 pages in all, which would take a bunch of standard 301 redirects. Is there any practical limit to the number of 301's that can be used? Alternatively is there some way of doing it by using wildcards? Or by mod rewrite?
This would be quite easy using a mod_rewrite. Putting something like this in an .htaccess file should do the trick:
RewriteEngine On
RewriteRule ([^/]+-gb\.php)$ http://www.example.com/newdir/$1 [R=301,L]
RewriteRule ([^/]+-b5\.php)$ http://www.example.com/newdir/$1 [R=301,L]
This would redirect all files that end in either -gb.php or -b5.php to example.com/newdir/<original filename>, using a 301 redirect.
Chad