Quote:
Originally Posted by qbonoguy
If I move my blog from root/forum to root/, how do I make it so that my server will redirect the old urls to the new ones?
For example, if someone goes to:
http://mydomain.com/forum/this-thread.php How do I make that page redirect to:
http://mydomain.com/this-thread.php Thanks for pointing me in the right direction! I've seen other sites do this I just don't have any clue where to look...
|
Put the following into your .htaccess file
RewriteEngine on
RewriteCond %{REQUEST_URI} ^/forum/.*$
RewriteRule ^/forum/(.+)$ http://mydomain.com/$1 [L,R]