Click here to get back home

apache mod rewrite problem

 HomeNewsGroups | Search | About
 alt.www.webmaster    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
apache mod rewrite problem Grouchy.Oldgit 06-08-2008
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?

Similar ThreadsPosted
A-hah! One more Chip's Challenge problem solved! () December 3, 2005, 8:03 am
apache rewrite and & April 10, 2007, 10:25 am
Apache Rewrite question March 18, 2008, 7:36 pm
Apache only serving index page problem April 18, 2008, 7:52 am
URL Rewrite May 4, 2005, 2:10 pm
A little help w/ htaccess rewrite? May 10, 2006, 5:02 pm
mod rewrite and $_GET March 22, 2007, 8:55 am
Google and Rewrite Rules November 21, 2005, 12:05 am
.htaccess rewrite and conditions May 19, 2006, 2:06 pm
One "universal" rewrite rule? October 17, 2006, 9:22 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap