What I'm ultimately looking to do is do /about instead of /main.php?p=about. I've seen a few posts (like this!) but none seem to work from me.
Firstly, I was putting the ReWrite rules in httpd.conf..is this correct? Lots of places mention .htaccess but I didn't have that file in any directory that seems important (the only references are in phpMyAdmin). I copied the file from phpMyAdmin into htdocs and then replaced the text with a simple rule:
RewriteEngine on
RewriteRule home main.php [L]
However localhost/home reported a Bad Request.
So firstly which file should I use & if .htaccess where should I put the file & do I have to reference it in any other files? Secondly, is the following likely to work for my desired approach?
RewriteEngine on
RewriteRule ^([^/]+)/? main.php?p=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
Thanks for any clarity & help. Mike