broomsy Posted October 26, 2006 Share Posted October 26, 2006 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 :) Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted October 26, 2006 Share Posted October 26, 2006 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.somecrapYou need to use a better regular expression.What URL parameters does index.php take? Quote Link to comment Share on other sites More sharing options...
broomsy Posted October 27, 2006 Author Share Posted October 27, 2006 I am now using:[code]RewriteEngine onRewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^(.*)\.html index.php?$1[/code]Is this an improvement? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.