cbbeny
cbbeny
Reputation Top 5%
cbbeny
2 Snippets  (262nd place)
Published
1 Channel
Created
1 Channel
Following
51 points  (596th place)
Reputation
Junior Code Generator
Junior Publisher
Junior Autobiographer
Serious Autobiographer
Junior Famous Coder

Recent Snippets See all snippets by cbbeny

public by cbbeny  1476  3  5  0

Change root folder via htaccess

RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain-name.com$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.domain-name.com$
RewriteCond %{REQUEST_URI} !folder/
RewriteRule (.*) /folder/$1 [L]
;

public by cbbeny  2733  0  5  0

Redirect website to https

RewriteEngine On
RewriteCond %{HTTP:HTTPS} !on [NV]
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
;