Search
 
SCRIPT & CODE EXAMPLE
 

PHP

Redirect to HTTPS & remove www

RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www. [NC]
RewriteCond %{HTTP_HOST} ^(?:www.)?(.+)$ [NC]
RewriteRule ^ https://%1%{REQUEST_URI} [L,NE,R=301]
Comment

PREVIOUS NEXT
Code Example
Php :: php unique id length 
Php :: This domain is not registered with Tiny Cloud. Please see the quickstart guide or create an account. 
Php :: routing in laravel 
Php :: twig render to variable 
Php :: validate number should by 12 digit in php 
Php :: php nested class 
Php :: codeigniter check view file exists 
Php :: return single row from eloquent all collection laravel 
Php :: include JS or Css in wordpress plugin 
Php :: pass data to blade laravel 
Php :: php response image 
Php :: array map php 
Php :: how to create route in laravel 
Php :: how to use concat in laravel 
Php :: Php OOP function CRUD 
Php :: Spatie vendor publish 
Php :: php triple quotes 
Php :: substr_count excact match php 
Php :: php online test 
Php :: php email sender 
Php :: php loopthrough object 
Php :: compress video file size php 
Php :: laravel relationship 
Php :: php array lenght 
Php :: php qrcode 
Php :: relations in php laravel 
Php :: laravel route not found 
Php :: laravel htaccess to remove public from url 
Php :: search line phpstorm mac 
Php :: $age = 20; print ($age = 18) ? "Adult" : "Not Adult"; 
ADD CONTENT
Topic
Content
Source link
Name
3+8 =