HTACCESS

Entries for: HTACCESS!
^Top
<< Back
Mobile-Menu










Sub Categories


Not Categorized

Generic HTACCESS Forces SSL & Non-WWW

Views: 441
Created: 2021-08-01 07:59:02
Modified: 2023-09-22 02:04:05

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: 719
Created: 2020-08-26 01:19:39
Modified: 2023-09-25 03:45:26

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: 717
Created: 2020-08-26 01:18:27
Modified: 2023-09-24 02:19:35

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 ...



Warning: Array to string conversion in /home/bugfish/public_html/_site/btm/init.php on line 82
Switches: 0 | Arrivals: 0 | Visits: 0
This Website is using Session Cookies for Site Functionality.