Sentence to think about :   Don't forget to install an htaccess to protect the access to the admin zone of GuppY.   
You are here :   Home » Htaccess
 
Preview  Print...  Print this page...
Preview  Print...  Print this section...
Introduction
Technique
News of Friends
To contact us
Visits

 1885988 visitors

 30 visitors online

Calendar
rss This article is available in the standard RSS format for publication on your website :
http://guppy.cms/data/en-articles.xml

GuppY comes with a .htaccess file in the root directory. This file is only useful if your web site runs with an Apache server (this is the case most of the time).

Here is its structure:

AddDefaultCharset UTF-8
<Files ~ "^.ht">
 Order allow,deny
 Deny from all
 Satisfy All
</Files>
<Files ~ ".(inc|dtb)$">
Order allow,deny
Deny from all
Satisfy all
</Files>
ErrorDocument 400 /error.php?err=400
ErrorDocument 403 /error.php?err=403
ErrorDocument 404 /error.php?err=404
ErrorDocument 500 /error.php?err=500
 

The first line shows the default charset.
The following 5 lines are used to protect the content of your database from hackers and other bad people (and there are some !). Otherwise, files like the data/frth.dtb file for example which holds all e-mail addresses of the people who posted a message in the forum can be read and even help to enrich a Spam file (ugly !).
These 6 lines are not to be modified.

The presence of .Htaccess file is mandatory and serves more if you enable address rewrite.

The 4 following lines are used to direct users to the error page when they ask for a non existing page, or other possible errors. These lines might require to be adapted (with a simple text editor like Notepad or Wordpad for example) according to where you have put your GuppY.

If you installed GuppY at the root of your site (URL = http://www.yoursite.com/) then you have nothing to do. But if you installed it in a directory of your site (URL = http://www.yoursite.com/here/ for example) then you will have to modify these 4 lines :

ErrorDocument 400 /ici/error.php?err=400
ErrorDocument 403 /ici/error.php?err=403
ErrorDocument 404 /ici/error.php?err=404
ErrorDocument 500 /ici/error.php?err=500

In some cases, you might need to modify these 4 lines as follows (for a website having an URL like http://www.yoursite.com/) :

ErrorDocument 400 http://www.votresite.com/error.php?err=400
ErrorDocument 403 http://www.votresite.com/error.php?err=403
ErrorDocument 404 http://www.votresite.com/error.php?err=404
ErrorDocument 500 http://www.votresite.com/error.php?err=500

Or, if installed in the here/ subdir :

ErrorDocument 400 http://www.votresite.com/ici/error.php?err=400
ErrorDocument 403 http://www.votresite.com/ici/error.php?err=403
ErrorDocument 404 http://www.votresite.com/ici/error.php?err=404
ErrorDocument 500 http://www.votresite.com/ici/error.php?err=500

It would also be wise to protect your admin/ directory by a user name and password within the .htaccess file.
As the way of doing it is usually specific to your web host, please refer to its documentation on this topic.

Our partner Nuxit offers to do just in the manager console.

For maximum security, you can put hatccess. Root and admin directory 444 for Guppy 5 these rights do not pose any problems, consult the documentation for your host.

We propose to download a htaccess spam. Known to block IP addresses to spam.
If you want to use, you must download freeGuppY.

For further information on how to protect your web site with a .htaccess file, please refer to the official Apache documentation...


 


Creation date : 25/08/2016 15:29
Category : - GuppY
Page read 47679 times

You are here :   Home » Htaccess
 
Preview  Print...  Print this page...
Preview  Print...  Print this section...
Preferences

Connect again :
Your user name :
Your password
9YwM
copy the code :


  Count of members 42 members
Connected :
(nobody)
Snif !!!
Newsletter
To receive news about this website, consider subscribing to our Newsletter.
9YwM
copy the code :
Subscriber
(nobody)
Snif !!!

Warning: Unknown: open(/var/www/sdb/f/1/euscalitches/sessions/sess_e2bb350623a5f4f27cdf4679a29fb5ee, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/www/sdb/f/1/euscalitches/sessions) in Unknown on line 0