The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
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, |
|
#2
|
||||
|
||||
|
Make this your htaccess file in the vbforums root directory.
Quote:
|
|
#3
|
|||
|
|||
|
I tried it but it did not work.
|
|
#4
|
||||
|
||||
|
put this code in your root .htaccess file
Code:
RewriteRule ^vbforums.* http://www.mysite.com/forums [NC,L,R] |
|
#5
|
||||
|
||||
|
Quote:
|
|
#6
|
|||
|
|||
|
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 RewriteEngine on RewriteRule ^vbforums.* http://www.mysite.com/forums [NC,L,R] Code:
Options +Indexes +FollowSymlinks RewriteEngine on RewriteRule ^vbforums.* http://forums.mysite.com [NC,L,R] ![]() Thanks in advance Boofo & SaN-DeeP.
|
|
#7
|
||||
|
||||
|
is your problem fixed ?
|
|
#8
|
|||
|
|||
|
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 |
|
#9
|
|||
|
|||
|
Try this:
RewriteRule ^vbforums/(.*)$ forums/$1 [L,R=301] |
|
#10
|
|||
|
|||
|
Yeap that did. Thanks everyone. :banana:
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|