httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Motty Cruz" <>
Subject [users@httpd] redirects on Apache 2.4.
Date Mon, 16 May 2016 18:20:38 GMT
Hello, I often sent users links to manual or howtos behind a portal that
requires username and password. However, users get redirected to homepage
after they successfully logged in. I suspect this htaccess file is the


My objective is to allow users to view any page only "if web_route" cookie
is present and if cookie is not present they would need to log in first. 




## Can be commented out if causes errors, see notes above.

Options +FollowSymLinks


RewriteEngine on

RewriteBase /


RewriteCond %{REQUEST_FILENAME} !-f

RewriteRule . /index.php [L]


ErrorDocument 404 index.php


RewriteCond %{HTTP_COOKIE} !^.*web_route.*$ [NC]

RewriteRule ^ [R=301,L]

View raw message