rfillaudeau/inkPics/master/.htaccess - Htaccess File

rfillaudeau/inkPics/master/.htaccess

ErrorDocument 400 /src/site/pages/error.php?error_code=400
ErrorDocument 401 /src/site/pages/error.php?error_code=401
ErrorDocument 403 /src/site/pages/error.php?error_code=403
ErrorDocument 404 /src/site/pages/error.php?error_code=404
ErrorDocument 500 /src/site/pages/error.php?error_code=500

SetEnv SESSION_USE_TRANS_SID 0
SetEnv REGISTER_GLOBALS 0
SetEnv ZEND_OPTIMIZER 1
SetEnv MAGIC_QUOTES 0
SetEnv PHP_VER 5_5

# URL Rewriting

Options +FollowSymlinks
RewriteEngine on

#RewriteCond %{HTTP_HOST} !^projets-manga.fr$ [NC]
#RewriteRule ^(.*)$ http://projets-manga.fr/$1 [L,R=301]

RewriteRule ^([a-z0-9-_]+)$   ?page=$1 [L]
RewriteRule ^([a-z0-9-_]+)/$   ?page=$1 [L]
RewriteRule ^([a-z0-9-_]+)/([a-z0-9-_]+)/$   ?page=$1&id=$2 [L]
RewriteRule ^([a-z0-9-_]+)/([a-z0-9-_]+)/([a-z0-9-_]+)/$   ?page=$1&id=$2&id2=$3 [L]
RewriteRule ^([a-z0-9-_]+)/([a-z0-9-_]+)/([a-z0-9-_]+)/([a-z0-9-_]+)/$   ?page=$1&id=$2&id2=$3&id3=$4 [L]
RewriteRule ^([a-z0-9-_]+)/([a-z0-9-_]+)/([a-z0-9-_]+)/([a-z0-9-_]+)/([a-z0-9-_]+)/$   ?page=$1&id=$2&id2=$3&id3=$4&id4=$5 [L]
RewriteRule ^([a-z0-9-_]+)/([a-z0-9-_]+)/([a-z0-9-_]+)/([a-z0-9-_]+)/([a-z0-9-_]+)/([a-z0-9-_]+)/$   ?page=$1&id=$2&id2=$3&id3=$4&id4=$5&id5=$6 [L]

On Github License

Files

Download PDF of Htaccess file
HTTP_HOST

Comments

Apache