Hi all I'm using following code to redirect all trafic to ssl: Code: RewriteEngine on RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R] It works well except for some times when my application returns from eg. a log off action to "domain.com:433" or "domain.com:433//". Not running ssl and breaks links to css, pictures etc. I would really prefer to solve this by a rewrite rule or similar instead of changing application code (which I haven't developed). I've searched for a solution and tried to figure it out by looking on rewritecond and rewriterules - but haven't found a working solution - any ideas? Thanks in advance