Reputation: 8935
I want to write these two different rules in one file. How I have to do it?
RewriteEngine On
RewriteCond %{REQUEST_URI} /v0\.3/forum/
RewriteRule ^(.*)$ /v0.3/test.php?forum=$1 [L,QSA]
RewriteEngine On
RewriteCond %{REQUEST_URI} /v0\.3/profile/
RewriteRule ^(.*)$ /v0.3/profiles.php?id=$1 [L,QSA]
Upvotes: 0
Views: 307
Reputation: 40621
Simply delete the second RewriteEngine On
declaration
RewriteEngine On
RewriteCond %{REQUEST_URI} /v0\.3/forum/
RewriteRule ^(.*)$ /v0.3/test.php?forum=$1 [L,QSA]
RewriteCond %{REQUEST_URI} /v0\.3/profile/
RewriteRule ^(.*)$ /v0.3/profiles.php?id=$1 [L,QSA]
Upvotes: 3