I’ve got a little php backend I’ve written that takes an argument in the URL, like this:
I would like to have “friendly” URLs and I’m thinking that I want to do this via a .htaccess file. I guess that friendly URLs would be something like this:
I’ve created the .htaccess file and added the following:
RewriteRule /(.*) /index.php?page=$1 [PT,L]
Yet, when I try to go to http://www.domain.com/about, I get an error: “The requested URL /about was not found on this server.”
Obviously, the .htaccess file is not catching and modifying the URL like I’m expecting it to. Any advice?