The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Multiple RewriteRules for single RewriteCond in .htaccess
Can someone please explain to me how I can make two different Rewriterules work at the same time using a single .htaccess file. For example if I have this:
RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^view_(.*).htm$ view.php?pg=$1 and I also want a similar Rewriterule to work at the same time: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*).html$ local_links.php?cat=$1 When the first part only is put in the .htaccess file, the Rewriterule works, but when I place them both together (with a blank line separating the two), the second Rewriterule does not work. Please help. --------------- Added [DATE]1214451919[/DATE] at [TIME]1214451919[/TIME] --------------- ...bump... |
#2
|
||||
|
||||
Add the condition and rule again (2 conditions and 2 rules).
|
#3
|
|||
|
|||
What do you mean? That's what I said I did...
|
#4
|
||||
|
||||
Code:
RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^view_(.*).htm$ view.php?pg=$1 RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*).html$ local_links.php?cat=$1 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|