Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

redirect http to https htaccess laravel 8

<IfModule mod_rewrite.c>
    RewriteEngine On        
  RewriteCond %{HTTPS} !=on    
  RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  RewriteRule ^(.*)$ public/ [L]
</IfModule>
 
PREVIOUS NEXT
Tagged: #redirect #http #https #htaccess #laravel
ADD COMMENT
Topic
Name
3+3 =