Jump to content

Excluding A File


broomsy

Recommended Posts

My .htaccess file currently reads like this:

[code]RewriteEngine on
RewriteRule ^(.*)\.html index.php?$1[/code]

So basically my index.php?blah would turn into blah.html.

My question is if I actually put a file up like test.html it actually goes to my index.html. How can I make real html files appear in the browser? Can I just exclude the file? I only need to validate Yahoo Site Explorer.

Also as your all so helpful can anyone explain my rewrite rule. I managed to put it together but didnt really understand it :)
Link to comment
Share on other sites

Its to do with your rewriteRule. Its too "hungry"

So what ever you put after your domain name, say you do http://mysite.com/somefile.somecrap mod_rewrite will kick in and go to index.php?somefile.somecrap

You need to use a better regular expression.

What URL parameters does index.php take?
Link to comment
Share on other sites

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.