I am trying to write .htacess file that would catch urls like:
http://www.site.com/pageone.html
http://www.site.com/pagetwo.html
and redirect them to index.php so it would receive 'pageone' and 'pagetwo' as GET parameters.
Below is my htacess:
Options +FollowSymlinks
AuthUserFile /dev/null
AuthGroupFile /dev/null
RewriteEngine On
RewriteOptions inherit
RewriteRule ^((?:.[^/])+).html$ index.php?page=$1 [L]
AddHandler php5-script .php
The problem with this regexp is that it catches some pages while showing 404 error on others. And i don't understand this behavior.
For example
works fine. I get 'draw' as GET parameter in my script.
But
http://www.site.com/draws.html
redirects to 404 page
Could anyone explain what is wrong with my htacess ?
p.s. - i am seeing this on a local Apache server under typical MAMP config.