View Full Version : Any way to keep old links working?
grandfso
06-22-2007, 10:20 PM
Hello! I have a question. Right now my forums are in /forum directory. I'd like to put it into one root directory, with changed index.php to forum.php. Is there a way to keep old spidered links to keep working?
Dismounted
06-23-2007, 02:56 AM
Yes, by using .htaccess redirection techniques, search on Google, there are billions of tutorials.
Dave Hawley
06-23-2007, 07:07 AM
Here is what works for me in a .htaccess
RewriteEngine on
# index.php to /
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.php\ HTTP/
RewriteRule ^(.*)index\.php$ /$1 [R=301,L]
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.