The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
htaccess redirect question
I have moved my forum from a "/forums/" sub-directory into the sites root directory. I have included the following code in my .htaccess file to redirect search engine links to the appropriate page in the sites new location and this is working great except I need to make an exception for the "/forums/images/" directory. This is where I need help.
Current code to redirect: Code:
RewriteRule ^forums(.*)$ http://www.domain.com/$1 [L,R=301] |
#2
|
||||
|
||||
Quote:
Try add a RewriteCond with a negative pattern that excludes the images folder. Something like this for ex: Code:
RewriteCond %{REQUEST_URI} !^/forums/images/ |
#3
|
|||
|
|||
Found the answer to my own question.
Code:
RewriteCond %{REQUEST_URI} !(images) RewriteRule ^forums(.*)$ http://www.domain.com/$1 [L,R=301] Quote:
Thank you! I responded to my own post before I saw that you had responded. Thank you for your response. |
#4
|
||||
|
||||
No problem.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|