Files
keliopanel-v4/web/.htaccess
2016-02-21 14:28:40 +01:00

19 lines
672 B
ApacheConf
Executable File

RewriteEngine on
AddDefaultcharset UTF-8
# Main page
RewriteRule ^([a-z]+)\.xhtml$ $1.php [L]
RewriteRule ^([a-z]+)-([a-z]+)\.xhtml$ $1.php?action=$2 [L]
RewriteRule ^([a-z]+)-([a-z]+)-([0-9]+)\.xhtml$ $1.php?action=$2&id=$3 [L]
# Hosting / Admin
RewriteRule ^hosting/([a-z]+)\.xhtml$ hosting/$1.php [L]
RewriteRule ^hosting/([a-z]+)-([a-z0-9]+)\.xhtml$ hosting/$1.php?action=$2 [L]
RewriteRule ^admin/([a-z]+)\.xhtml$ admin/$1.php [L]
RewriteRule ^admin/([a-z]+)-([a-z]+)\.xhtml$ admin/$1.php?action=$2 [L]
RewriteRule ^admin/([a-z]+)-([a-z]+)-([0-9]+)\.xhtml$ admin/$1.php?action=$2&id=$3 [L]
#Error page
RewriteRule ^error-([0-9]{1,3})\.xhtml$ error.php?eid=$1 [L]