HTACCESS

All entries about HTACCESS!
^Top
<< Back










Highlighted Entries

Sub Categories


Not Categorized

Generic HTACCESS Forces SSL & Non-WWW

Views: 402 Created: 2021-08-01 07:59:02 Modified: 2023-03-20 20:49:50
This is the code for an .htaccess file which does: -&gt; Redirect all www requests to non-www requests<br /> -&gt; Always force SSL<br /> <br /> RewriteCond %{HTTPS} !=on<br /> RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]<br /> RewriteCond %{HTTP_HOST} ^www\\.(.*)$ [NC]<br /> RewriteRule ^(....

HTAccess Forward HTTP to HTTPS

Views: 684 Created: 2020-08-26 01:19:39 Modified: 2023-03-22 10:09:35
If you put this in your htaccess, the server will forward all request from HTTP to HTTPS<br /> (with all details after the domain included like get variables)<br /> It will also rewrite all www.yourdomain.de requests to yourdomain.de.<br /> So its not possible to create 2 sessions on the same website. Replace yourdomain.de with yo...

HTAccess own Error Documents

Views: 669 Created: 2020-08-26 01:18:27 Modified: 2023-03-23 10:22:23
Enter this in your Websites .htaccess main directory to let the server redirect<br /> HTTP404 Errors or misc to a specified site. ErrorDocument 400 /error/400.php<br /> ErrorDocument 401 /error/401.php<br /> ErrorDocument 403 /error/403.html<br /> ErrorDocument 404 /error/404.php<br /> ErrorDocument 500 /error/405.php ...

This Website is using Session Cookies for Site Functionality.