triadiprabowo/utophoto/master/.htaccess - Htaccess File

triadiprabowo/utophoto/master/.htaccess

RewriteEngine on

# RewriteCond %{HTTP_HOST} ^www.(.*)$ [NC]
# RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

RewriteCond %{HTTP_HOST} ^www.
RewriteCond %{HTTPS}s ^on(s)|off
RewriteCond http%1://%{HTTP_HOST} ^(https?://)(www.)?(.+)$
RewriteRule ^ %1%3%{REQUEST_URI} [R=301,L]

#RewriteCond %{HTTPS} !on
#RewriteRule (.*) https://{HTTP_HOST}%{REQUEST_URI}

# RewriteCond %{REQUEST_URI} !/res/
# RewriteRule ^(.*.(jpg|png))$ res.html?=

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.html?$1 [L]
# RewriteRule ^(.*)$ http://localhost/chocomory/index.html/$1 [L]

On Github License

Files

Download PDF of Htaccess file
HTTP_HOST, HTTPS, REQUEST_FILENAME, REQUEST_URI

Comments

Apache