|
Posted by Grouchy.Oldgit on June 8, 2008, 8:33 pm
Please log in for more thread options
I have a site hosted with godaddy that uses a database to hold
content
which is then dynamically loaded into a fixed template by calling the
url such as mydomain.com/content.php?artid=3 etc.
It would be nice if users could enter urls as mydomain.com/articles/3
etc which I believe is achievable with apache mod rewrite. I
therefore
added an .htaccess file contining:
RewriteEngine on
RewriteRule ^articles/([^/\.]+)/?$ content.php?artid=$1 [L]
When this didn't work I googled the problem to find the suggestion
that with godaddy it was necessary to add an additional command, ie:
Options -MultiViews
RewriteEngine on
RewriteRule ^articles/([^/\.]+)/?$ content.php?artid=$1 [L]
However, this still returns a "page cannot be found error".
Any suggestions?
|