Re: A newbie question about mod_rewrite configuration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 3/20/07, Charles Michener <micheck123@xxxxxxxxx> 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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux