redirects on Apache 2.4.

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

 



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 cause.

 

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.

 

.htaccess:

 

## 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 ^ https://apps.mydomain.com/portal/account/LogOn?ReturnUrl=https://portal.mydomain.com/ [R=301,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