I've been stuck on this forever. In order to change localhost/article.php?id=bryan to simply localhost/article/bryan or even localhost/bryan whatexact .htaccess code should I use?
Thanks guys, really appreciate all the help!
You can use this:
RewriteEngine On
RewriteRule ^article/([^/]*)$ /article.php?id=$1 [L]
This will re-write localhost/article.php?id=bryan to http://localhost/article/bryan
Or you can use:
RewriteEngine On
RewriteRule ^([^/]*)$ /article.php?id=$1 [L]
This will re-write localhost/article.php?id=bryan to http://localhost/bryan
AllowOverride to AllowOverride all