Re: ReDirect question

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

 



On Sat, Jun 27, 2015 at 4:45 PM, James Moe <jimoe@xxxxxxxxxxxxxx> wrote:
----[ from the vhost file ]----
<VirtualHost *:80>
...
 <Directory "/data01/t-drv/websites/sma-v3">
     # Always use a secure connection
    RewriteEngine On
    RewriteCond %{SERVER_PORT} =80
    RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R,L]

That rewrite rule should retain the query string. Have you tested whether the .htaccess rewrite works if you make the initial connection over https?

Try adding another rewrite rule to the .htaccess. For example,

RewriteCond %{QUERY_STRING} =testing=123
RewriteRule ^ . [F]

If you then issue a "GET /category/?testing=123" do you get a 403 Forbidden status in response?

--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank

[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