Snazim sa o to ,aby mi aj http aj https presmerovalo na https://stranka.sk/ ale pri https mi to nefunguje. Viete niekto poradit ?
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ https://%1/$1 [R=301,L] RewriteCond %{HTTPS} !on RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
v jednom virtualhoste nemozes mat http aj https...
Sprav zvlast pre http. A v http stranke das vsetko presmerovat na 1 subor. A nasledne das napr. v PHP presmerovanie na zaklade URL.
Resp. v skriptovacom jazyku vies zistit, ci je request z http alebo https. Ak je z http, das presmerovanie na https.
co tak si najprv zistit ako to funguje a az potom pisat bludy...?