Yes, I did try removing both the ^ and the $, and adding a / in front of articles.php, but it made no difference.
> From: [EMAIL PROTECTED] (Dvdmandt) > Reply-To: "DvDmanDT" <[EMAIL PROTECTED]> > Newsgroups: php.general > Date: Sat, 24 Jan 2004 19:06:09 +0100 > To: [EMAIL PROTECTED] > Subject: Re: RewriteRule REGEX ? > > Did you try to remove that '^' ? That means start.. In other words you are > saying that the uri starts with articles, when I would think it starts with > /articles... Yes, that could really matter... > > -- > // DvDmanDT > MSN: dvdmandtâhotmail.com > Mail: dvdmandtâtelia.com > "Monty" <[EMAIL PROTECTED]> skrev i meddelandet > news:[EMAIL PROTECTED] >> My server runs Apache 2.0. I am trying to do a simple URL rewrite so that >> old URLs will map to our new style of URLS... >> >> From This: articles.php?id=999 >> To This: articles/999 >> >> In the .htaccess file for the htdocs folder that contains the web files, I >> put the following: >> >> RewriteEngine on >> RewriteRule ^articles\.php\?id=([0-9]+)$ articles/$1 [R] >> >> I've also tried this (no slash in front of ?): >> >> RewriteEngine on >> RewriteRule ^articles\.php?id=([0-9]+)$ articles/$1 [R] >> >> But I keep getting a 404 error for articles.php, which means that > something >> must be wrong with my RewriteRule because it's not matching. I've tried >> various tweaks and just can't get it to work. >> >> What am I doing wrong?? >> >> Thanks. > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php