Wiki - Htaccess

Category about Htaccess

Sub-Categories: [Not Categorized]

Not Categorized

Generic HTACCESS Forces SSL & Non-WWW

This is the code for an .htaccess file which does: -> Redirect all www requests to non-www requests -> Always force SSL RewriteCond %{HTTPS} !=on RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ https://%1/$1 [R=301,L] ...

HTAccess Forward HTTP to HTTPS

If you put this in your htaccess, the server will forward all request from HTTP to HTTPS (with all details after the domain included like get variables) It will also rewrite all www.yourdomain.de requests to yourdomain.de. So its not possible to create 2 sessions on the same website. Replace yourdomain.de with your own domain which is needed. Rewri...

HTAccess own Error Documents

Enter this in your Websites .htaccess main directory to let the server redirect HTTP404 Errors or misc to a specified site. ErrorDocument 400 /error/400.php ErrorDocument 401 /error/401.php ErrorDocument 403 /error/403.html ErrorDocument 404 /error/404.php ErrorDocument 500 /error/405.php This is just an example where for 404 errors the page /error...

A49 | H48
This Website is using Session Cookies for Site Functionality and AWStats.