I understand that this rule should work just fine:
[php]RewriteRule ^(.)$ index.php?page=$1[/php]
But all I get is a 404 error when I use /example to get to /index.php?p=example
However, it works when I use a file extension, or even just a dot…
[php]RewriteRule ^(.).$ index.php?page=$1[/php]
This works but obviously I don’t want my urls to be …domain.com/example.
Any ideas why this is happening?
Using Godaddy linux hosting btw
Thanks in advance
I think this is what you want
RewriteRule ^/([^\/]+) /index.php?p=$1