From bd86b9cc65b3b2004204a82cabd08c53aba156dd Mon Sep 17 00:00:00 2001 From: Gnieark Date: Fri, 27 Nov 2015 17:13:07 +0100 Subject: [PATCH] rewriteRules --- .htaccess | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.htaccess b/.htaccess index efe2226..4f2d56e 100644 --- a/.htaccess +++ b/.htaccess @@ -1,3 +1,15 @@ php_flag display_startup_errors on php_flag display_errors on php_flag html_errors on + +#rewriterules +#urlrewritting +RewriteEngine On +RewriteBase / +RewriteRule ^v/([A-Za-z0-9]*)-([a-Z]{2})$ index.php?arena=$1&lang=$2 [L] +RewriteRule ^v/([A-Za-z0-9]*)$ index.php?arena=$1 [L] +RewriteRule ^v/-([a-Z]{2})$ index.php?lang=$1 [L] +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d +RewriteRule ^([A-Za-z0-9]*)$ index.php?page=$1 [L] +RewriteRule ^index.php$ index.php/ [L]