Kishlin/Blog/master/.htaccess
ErrorDocument 404 /404.html
ErrorDocument 403 /403.html
<IfModule mod_rewrite.c>
Options +FollowSymlinks
# Options +SymLinksIfOwnerMatch
RewriteEngine On
RewriteBase /
#Admin Pages
RewriteRule ^admin$ /admin.php
RewriteRule ^disconnect$ /disconnect.php
# Welcome page
RewriteRule ^$ /en/welcome [R]
RewriteRule ^welcome$ /welcome.php?lang=en
RewriteRule ^en/welcome$ /welcome.php?lang=en
RewriteRule ^fr/welcome$ /welcome.php?lang=fr
# Home page
RewriteRule ^home$ /en/home [R]
RewriteRule ^en/home$ /index.php?page=home&lang=en
RewriteRule ^fr/home$ /index.php?page=home&lang=fr
# Resume page
RewriteRule ^resume$ /en/resume [R]
RewriteRule ^en/resume$ /index.php?page=resume&lang=en
RewriteRule ^fr/resume$ /index.php?page=resume&lang=fr
</IfModule>
# ##############################################################################
# # SECURITY #
# ##############################################################################
# ------------------------------------------------------------------------------
# | File access |
# ------------------------------------------------------------------------------
# Block access to directories without a default document.
# Usually you should leave this uncommented because you shouldn't allow anyone
# to surf through every directory on your server (which may includes rather
# private places like the CMS's directories).
<IfModule mod_autoindex.c>
Options -Indexes
</IfModule>
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Block access to hidden files and directories.
# This includes directories used by version control systems such as Git and SVN.
<IfModule mod_rewrite.c>
RewriteCond %{SCRIPT_FILENAME} -d [OR]
RewriteCond %{SCRIPT_FILENAME} -f
RewriteRule "(^|/)." - [F]
</IfModule>
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Block access to backup and source files.
# These files may be left by some text editors and can pose a great security
# danger when anyone has access to them.
<FilesMatch "(^#.*#|.(bak|config|dist|fla|inc|ini|log|psd|sh|sql|sw[op])|~)$">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>
On Github License
Files
Download PDF of Htaccess file