Category about Htaccess

Not Categorized
[2021-08-01 07:59:02] Generic HTACCESS Forces SSL & Non-WWW [HTACCESS / Not Categorized]
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] ...
[2020-08-26 01:19:39] HTAccess Forward HTTP to HTTPS [HTACCESS]
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...
[2020-08-26 01:18:27] HTAccess own Error Documents [HTACCESS]
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...
Switch: 165 | Arrive: 248
This Website is using Session Cookies for Site Functionality and AWStats.
Staff may be MiA!