2015-08-20 57 views

回答

0

您可以使用此規則:

RewriteEngine On 
RewriteBase/

# If the request is not for a valid directory 
RewriteCond %{REQUEST_FILENAME} !-d 
# If the request is not for a valid file 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteRule ^([^.]+)/?$ ?lang=$1 [L,QSA] 
+0

能否請你解釋。我想明白。 – teamo

+0

我曾在代碼中寫過評論。哪一部分不清楚?你還測試過嗎? – anubhava