Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

https redirect in htacess for php laravel

<IfModule mod_rewrite.c>
  RewriteEngine On
  
  RewriteCond %{HTTPS} off
  RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    
  RewriteCond %{REQUEST_URI} !^/public/
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  
  RewriteRule ^(.*)$ /public/$1
  RewriteRule ^(/)?$ public/index.php [L]
</IfModule>
Source by techsolutionstuff.com #
 
PREVIOUS NEXT
Tagged: #https #redirect #htacess #php #laravel
ADD COMMENT
Topic
Name
1+5 =