I am trying to write .htacess file that would catch urls like:
and redirect them to index.php so it would receive 'pageone' and 'pagetwo' as GET parameters.
Below is my htacess:
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.
works fine. I get 'draw' as GET parameter in my script.
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.