fix .htaccess

This commit is contained in:
Gnieark 2015-11-27 22:19:28 +01:00
parent 1eb7d3a2c6
commit 66e7650ae6
2 changed files with 8 additions and 11 deletions

View File

@ -1,14 +1,3 @@
php_flag display_startup_errors on php_flag display_startup_errors on
php_flag display_errors on php_flag display_errors on
php_flag html_errors on php_flag html_errors on
#rewriterules
#urlrewritting
RewriteEngine On
RewriteBase /
RewriteRule ^/([a-zA-Z]*)-([a-z]{2})$ index\.php?arena=$1&lang=$2 [L]
RewriteRule ^/([a-zA-Z]*)$ index\.php?arena=$1 [L]
RewriteRule ^/-([a-z]{2})$ index\.php?lang=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^index.php$ index.php/ [L]

8
html/.htaccess Normal file
View File

@ -0,0 +1,8 @@
RewriteEngine On
RewriteBase /
RewriteRule ^([a-zA-Z]*)-([a-z]{2})$ index\.php?arena=$1&lang=$2 [L]
RewriteRule ^([a-zA-Z]*)$ index\.php?arena=$1 [L]
RewriteRule ^-([a-z]{2})$ index\.php?lang=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^index.php$ index.php/ [L]