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] |