Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

Install PHP-Fusion with HTTPS

On Russian NNS one user asked, whether it is possible to specify protocol (HTTP/HTTPS) when user installs CMS and write .htaccess file with this in mind.
His .htaccess file:
CodeDownload  
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
#Force utf-8 charset
AddDefaultCharset utf-8
#Security
ServerSignature Off
#secure htaccess file
<Files .htaccess>
order allow,deny
deny from all
</Files>
#protect config.php
<Files config.php>
order allow,deny
deny from all
</Files>
#Block Nasty Bots
SetEnvIfNoCase ^User-Agent$ .*(craftbot|download|extract|stripper|sucker|ninja|clshttp|webspider|leacher|collector|grabber|webpictures) HTTP_SAFE_BADBOT
SetEnvIfNoCase ^User-Agent$ .*(libwww-perl|aesop_com_spiderman) HTTP_SAFE_BADBOT
Deny from env=HTTP_SAFE_BADBOT
#Disable directory listing
Options -Indexes
ErrorDocument 400 /error.php?code=400
ErrorDocument 401 /error.php?code=401
ErrorDocument 403 /error.php?code=403
ErrorDocument 404 /error.php?code=404
ErrorDocument 500 /error.php?code=500

i have not tried yet... by right it should.
Thread Information
Author
Replies
2 posts
Views
514 times
Last Post
Last updated on 5 years ago
You can view all discussion threads in this forum.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You cannot download attachments in this forum.