Démo Skins Papinou pour GuppY 5

Sentence to think about :   Take good contents, a pinch of pixels, let rest and you obtain an harmonious GuppY.   
You are here :   Home » Htaccess
Preview  Print...  Print this page...
Preview  Print...  Print this section...
Skins with the choice

Choose a skin

Skin :

 81657 visitors

 1 visitor online

rss This article is available in the standard RSS format for publication on your website :

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 ~ ".(inc|dtb)$">
Order allow,deny
Deny from all
Satisfy all
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.0 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 : 08/06/2015 09:06
Category : Technique - Secure your GuppY
Page read 1691 times

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

  81657 visitors
  1 visitor online

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