[inne]Mod rewrite http://www na https://www, htaccess |
[inne]Mod rewrite http://www na https://www, htaccess |
29.09.2021, 22:47:10
Post
#1
|
|
Grupa: Zarejestrowani Postów: 518 Pomógł: 6 Dołączył: 21.07.2008 Ostrzeżenie: (0%) |
Jak dodać przekierowanie w .htaccess (Symfony)
ze starego adresu strony: http:/www.domena.pl/folder/ na adres: https://www.domena.pl/folder Obecnie w pliku jest tak: Kod <IfModule mod_negotiation.c> Options -MultiViews </IfModule> <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_URI}::$0 ^(/.+)/(.*)::\2$ RewriteRule .* - [E=BASE:%1] RewriteCond %{HTTP:Authorization} .+ RewriteRule ^ - [E=HTTP_AUTHORIZATION:%0] RewriteCond %{ENV:REDIRECT_STATUS} ="" RewriteRule ^index\.php(?:/(.*)|$) %{ENV:BASE}/$1 [R=301,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ %{ENV:BASE}/index.php [L] </IfModule> <IfModule !mod_rewrite.c> <IfModule mod_alias.c> RedirectMatch 307 ^/$ /index.php/ </IfModule> </IfModule> i kiedy klikam w Google na dowolny / każdy stary link zawsze przekierowuje na adres główny https://www.domena.pl a chcę, aby przekierowywało z: http:/www.domena.pl/folder/ na https:/www.domena.pl/folder http:/www.domena.pl/folder/name.html na https:/www.domena.pl/folder/name.html itd. Ten post edytował Malinaa 29.09.2021, 23:07:39 -------------------- I welcome you on the Internet >>> Design by Malina
|
|
|
30.09.2021, 11:14:17
Post
#2
|
|
Grupa: Zarejestrowani Postów: 2 592 Pomógł: 445 Dołączył: 12.03.2007 Ostrzeżenie: (0%) |
Przekierowanie z HTTP na HTTPS (z przepisaniem całego URLa):
-------------------- |
|
|
30.09.2021, 12:35:18
Post
#3
|
|
Grupa: Zarejestrowani Postów: 518 Pomógł: 6 Dołączył: 21.07.2008 Ostrzeżenie: (0%) |
Już zrobione.
Ten post edytował Malinaa 30.09.2021, 12:45:27 -------------------- I welcome you on the Internet >>> Design by Malina
|
|
|
Wersja Lo-Fi | Aktualny czas: 17.04.2024 - 22:17 |