2011-09-24, 19:32:31
Oleg06 Wrote:I tried to install the code, but the result is all broken locally
Code:RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^(.*):([a-z]+)([^a-z/][^/]*)?/?$ $1$3?lang=$2 [QSA,DPI]
RewriteRule ^(.*);(\d+)([^\d/][^/]*)?/?$ $1$3?page=$2 [QSA,DPI]
RewriteRule /?([A-Za-z0-9_-]+)/?$ index.php?id=$1 [QSA,L]
RewriteRule ^ index.php [L]
What is the problem?
And just for clarification: the above code only shows the rules part of the .htaccess. Don't throw away the part before like
Code:
...
RewriteEngine on
RewriteBase /