![]() |
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] |
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/ |
Found the answer to my own question.
Code:
RewriteCond %{REQUEST_URI} !(images) Quote:
Thank you! I responded to my own post before I saw that you had responded. Thank you for your response. |
No problem.
|
All times are GMT. The time now is 11:24 PM. |
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:
|