Daca vrei sa verifici daca redirect-urile funtioneaza, o poti face aici: Bulk Redirect Checker | Tool to check Redirect Chains & HTTP Reponces
Daca ai facut corect redirectul, implicit se transfera si autoritatea catre https.
Daca vrei sa verifici daca redirect-urile funtioneaza, o poti face aici: Bulk Redirect Checker | Tool to check Redirect Chains & HTTP Reponces
Daca ai facut corect redirectul, implicit se transfera si autoritatea catre https.
Pare in regula?
![]()
Pornind de la ce ai acolo, incearca asta:
Am ingrosat ce am adaugat la ceea ce deja ai.Cod:# Redirect www to non-www https RewriteCond %{HTTP_HOST} ^www\.pctroubleshooting\.ro$ [NC] RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$ RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ RewriteRule ^(.*)$ https://pctroubleshooting.ro/$1 [R=301,L] RewriteCond %{HTTPS} off RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$ RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
Cu precautie ca nu e testat.
Sau poti incerca metoda mai eleganta:
Repet, fii precaut, sunt obosit la ora la care scriu...Cod:RewriteEngine On RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} ^www\. [NC] RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC] RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$ RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ RewriteRule ^ https://%1%{REQUEST_URI} [L,NE,R=301]
Momentan este/sunt 1 utilizator(i) care navighează în acest subiect. (0 membrii și 1 vizitatori)