Help w/ Rewrite

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

 



Hello all,

I have a directory on my webserver (say http://localhost/foo/) who's subdirectories (say bar/ and cha/) I want to only be available via SSL ( https://localhost/foo/bar/ % https://localhost/foo/cha/).  I have the following .htaccess in my foo/ directory, but it's not working.  I assume the rewrite just isn't getting called on because I don't get any errors or anything.  mod_rewrite is enabled, and AllowOveride is set to All for my root directory.  I've tried both ^(.*)$ and /^(.*)$ for the rewrite rule.  Any suggestions?  Thanks! -- BTR

#### .htaccess file in foo/ directory ####

RewriteCond %{SERVER_PORT} !^443$
RewriteRule /^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]


[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