kevindesousa/mvc/master/.htaccess - Htaccess File

kevindesousa/mvc/master/.htaccess

Options +FollowSymlinks
RewriteEngine on

#RewriteCond %{REQUEST_FILENAME} -f
#RewriteRule /(.+) /$1 [L]

RewriteRule login/ index.php?controller=content&module=authentificate [L]
RewriteRule login index.php?controller=content&module=authentificate [L]

RewriteRule logout/ index.php?controller=content&module=authentificate&action=disconnect [L]
RewriteRule logout index.php?controller=content&module=authentificate&action=disconnect [L]

RewriteRule user/([a-zA-Z0-9]+)/([a-zA-Z0-9]+)/ index.php?controller=user&pseudo=$1&module=$2 [L]
RewriteRule user/([a-zA-Z0-9]+)/([a-zA-Z0-9]+) index.php?controller=user&pseudo=$1&module=$2 [L]
RewriteRule user/([a-zA-Z0-9]+)/([a-zA-Z0-9]+)/ index.php?controller=user&pseudo=$1&module=$2 [L]
RewriteRule user/([a-zA-Z0-9]+)/([a-zA-Z0-9]+) index.php?controller=user&pseudo=$1&module=$2 [L]
RewriteRule user/([a-zA-Z0-9]+)/ index.php?controller=user&pseudo=$1 [L]
RewriteRule user/([a-zA-Z0-9]+) index.php?controller=user&pseudo=$1 [L]

RewriteRule team/([a-zA-Z0-9]+)/([a-zA-Z0-9]+) index.php?controller=team&pseudo=$1&module=$2 [L]
RewriteRule team/([a-zA-Z0-9]+) index.php?controller=team&pseudo=$1 [L]
RewriteRule team/ index.php?controller=team [L]

#RewriteRule match/([a-zA-Z]+)/([a-zA-Z0-9]+)/ index.php?controller=match&module=$1&action=$2 [L]
RewriteRule match/([a-zA-Z]+)/([a-zA-Z0-9]+) index.php?controller=match&module=$1&action=$2 [L]
RewriteRule match/([a-zA-Z]+) index.php?controller=match&module=$1 [L]
RewriteRule match/([0-9]+) index.php?controller=match&id=$1 [L]
RewriteRule match/ index.php?controller=match [L]
RewriteRule match index.php?controller=match [L]

RewriteRule list-team/ index.php?controller=user&module=list-team [L]
RewriteRule list-team index.php?controller=user&module=list-team [L]

RewriteRule tournament/([a-zA-Z]+)/([a-zA-Z0-9]+) index.php?controller=tournament&module=$1&action=$2 [L]
RewriteRule tournament/([a-zA-Z]+) index.php?controller=tournament&module=$1 [L]
RewriteRule tournament index.php?controller=tournament [L]

#Register
RewriteRule register-team index.php?controller=team&module=register [L]
RewriteRule register-user index.php?controller=user&module=register [L]

RewriteRule home index.php?controller=content [L]

# Pages d'erreur
ErrorDocument 404 /gdt/errors/404.php

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME

Comments

Apache