Jump to content

Make a file Ignore RewriteRule


Evan_McIntosh

Recommended Posts

RewriteRule ^([^/]*)\.html$ random.php?id=$1 [L]

 

Any link to a file in the folder will be Rewritten as above.

 

example:

www.url.com/cat.html 

 

becomes:

www.url.com/random.php?id=cat

How can I make a link ignored so a html file in the folder can be opened?
 

 

 

Hm...the easiest way that I know is not applying a rule to this url request. 

Try next and tell us if you have a problem:

RewriteCond %{REQUEST_URI} !cat.html
RewriteRule ^([^/]*)\.html$ random.php?id=$1 [L]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.