The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
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:
|