diff --git a/.htaccess b/.htaccess index 1743a97..efe2226 100644 --- a/.htaccess +++ b/.htaccess @@ -1,14 +1,3 @@ php_flag display_startup_errors on php_flag display_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] \ No newline at end of file diff --git a/html/.htaccess b/html/.htaccess new file mode 100644 index 0000000..a560f4c --- /dev/null +++ b/html/.htaccess @@ -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]