Re: [users@httpd] Extra garbage in URL when using mod_rewrite with redirects

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

 



On 9/18/06, Philip Pemberton <usenet06@xxxxxxxxxxxxx> wrote:

RedirectPermanent /forum http://forum.philpem.me.uk
RedirectPermanent /blog http://blog.philpem.me.uk


Although the stuff after the ? is pretty benign (the scripts in those
directories just ignore it), for the sake of URL tidiness I'd like to get rid
of it. Can anyone tell me what I need to add to my htaccess to do that?

Don't mix mod_rewrite and mod_alias.  In place of those RedirectPermanent, use
RewriteRule ^forum http://forum.philpem.me.uk [R=permanent,L]
etc...

(That might be exactly what you need, but it should be close.)

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