Jump to content

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?
 

 

 

Link to comment
https://forums.phpfreaks.com/topic/281327-make-a-file-ignore-rewriterule/
Share on other sites

  • Solution

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]
Edited by jazzman1
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.