Exception to conditional statement

Discuss practical ways rearrange URLs using mod_rewrite.

Exception to conditional statement

Postby ohyoko2 » Thu Feb 17, 2005 9:04 pm

How would I make an exception to a condition?

I'd like to issue a rule that references a directory for all *.html files (e.g., 1.html -> /1/, blah.html -> /blah/, test.html -> /test/); however, there is an already-existent directory that I do not want to adhere to this condition (e.g., /etc/).
ohyoko2
 

Postby Caterham » Fri Feb 18, 2005 4:59 am

How would I make an exception to a condition?
place
Code: Select all
RewriteRule ^etc - [L]
above the rule(s) you wish not being prased for incomming requests.
Caterham
 
Posts: 690
Joined: Fri Dec 10, 2004 1:30 pm


Return to Friendly URLs with Mod_Rewrite

Who is online

Users browsing this forum: No registered users and 22 guests

cron