httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Motty <motty.c...@gmail.com>
Subject [users@httpd]mod_rewrite HTTP_COOKIE
Date Thu, 10 Dec 2015 02:45:00 GMT
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]


Mime
View raw message