httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <jos...@slive.ca>
Subject Re: [users@httpd] A newbie question about mod_rewrite configuration
Date Tue, 20 Mar 2007 23:42:33 GMT
On 3/20/07, Charles Michener <micheck123@yahoo.com> wrote:

>  RewriteRule ^([^/]+).htm$ index.php?SKU=$1 [R]

Inside httpd.conf, rewriterules are / based, so you need
RewriteRule ^/([^/]+)..... /index.php....

Also, you'll need to either use RewriteOptions Inherit inside the
<VirtualHost>, or explicitly put the RewriteRule inside the
<VirtualHost> section.

In addition, I doubt you want the [R] which will cause client's
URL-bar to change.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message