Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> htaccess + https i struktura mvc
KotWButach
post 24.01.2018, 17:30:33
Post #1





Grupa: Zarejestrowani
Postów: 361
Pomógł: 10
Dołączył: 8.02.2012

Ostrzeżenie: (0%)
-----


Cześć, mam prośbę czy ktoś mógłby mi pomóc nieco zrozumieć lub chociaż rozwiązać mój problem.

mam .htaccess

  1. RewriteEngine On
  2.  
  3. RewriteCond ${REQUEST_URI} ^.+$
  4.  
  5. RewriteCond %{REQUEST_FILENAME} -f [OR]
  6. RewriteCond %{REQUEST_FILENAME} -d [OR]
  7. RewriteCond %{REQUEST_FILENAME} -l
  8.  
  9. RewriteRule ^.*\.(gif|jpg|png|css|js|map|eot|ttf|woff|svg)$ - [L]
  10. RewriteRule ^/([a-z0-9-_]+).(php|html|htm)$ /$1 [R=301,L]
  11. RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]


i chciałbym by z http zrobiło sie https ale cokolwiek nie dodam to psuje mi to kod powyższy.
Go to the top of the page
+Quote Post
com
post 24.01.2018, 18:32:09
Post #2





Grupa: Zarejestrowani
Postów: 3 032
Pomógł: 366
Dołączył: 24.05.2012

Ostrzeżenie: (0%)
-----


  1. RewriteEngine On
  2. RewriteCond %{HTTPS} !=on
  3. RewriteCond %{HTTP:X-Forwarded-Proto} !https [NC]
  4. RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]


próbowałeś coś takiego?
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 28.03.2024 - 12:12