![]() |
How to setup a 301 redirect correctly
Please chime in of you can help. I changed my directory structure the other day. My forums use to be located at www.mysite.com/vbforums
I move it to www.mysite.com/forums How and where do I setup a redirect for all the old links? Thanks, |
Make this your htaccess file in the vbforums root directory.
Quote:
|
I tried it but it did not work. :(
|
put this code in your root .htaccess file
Regards, |
Quote:
|
Quote:
My old links look like this: http://www.mysite.com/vbforums/showthread.php?t=19549 The redirect urls look like this and doesn't show the correct page: http://www.mysite.com/forums/?t=19549 Here is a little twist too. My forums are setup on a sub-domain: http://forums.mysite.com which points to http://www.mysite.com/forums It will work either way but I would like to have the redirect urls look like my current forum urls: http://forums.mysite.com/showthread.php?t=19549 My htacces currently looks like this Code:
Options +Indexes +FollowSymlinks Code:
Options +Indexes +FollowSymlinks Thanks in advance Boofo & SaN-DeeP. :) |
is your problem fixed ?
|
Quote:
My old links look like this: http://www.mysite.com/vbforums/showthread.php?t=19549 The redirect urls look like this and doesn't show the correct page: http://www.mysite.com/forums/?t=19549 |
Try this:
RewriteRule ^vbforums/(.*)$ forums/$1 [L,R=301] |
Yeap that did. Thanks everyone. :banana:
|
All times are GMT. The time now is 05:27 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|