I need a redirect handeling url's like this:
http ==> https
www ==> non-www
Somebody calling http://www.mydomain.de/mypath ==> https://mydomain.de/mypath
At the moment he gets redirected to https://mydomain.de
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteRule ^api/rest api.php?type=rest [QSA,L]
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteCond %{REQUEST_METHOD} ^TRAC[EK]
RewriteRule .* - [L,R=405]
RewriteCond %{REQUEST_URI} !^/(media|skin|js)/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php [L]
</IfModule>
http://domain.com/somepath
is always redirected tohttps://domain.com
– Bernhard Prange Jul 24 '15 at 13:22