mod_rewrite HTTP_COOKIE

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

 



Title: help mod_write

Hello All, I need to authenticate users before allow to view website. using Apache2.4 if users don't have web_route they will be redirected. The condition & rule works but then Joomla URL don't work. Can someone please help?

<Directory "/home/joomla">

    Options Indexes FollowSymLinks
   
Options ALL -Indexes
   
IndexIgnore *
   
AllowOverride None
   
Order allow,deny
   
Allow from all
   
RewriteEngine On
   
RewriteBase /
   
RewriteCond %{HTTP_COOKIE} !^.*web_routes.*$ [NC]
   
RewriteRule ^ https://aps.mydomain.com/Account/LogOn?ReturnUrl=http://portal.mydomain.net/
 

    RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
   
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d

   
RewriteRule . /index.php [L]

 


[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