2014-01-30 23 views

回答

0

重寫引擎將循環,這意味着重寫的URI(/user.php)匹配相同的模式並再次應用。嘗試添加一些條件:

RewriteEngine On 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteRule ^([^/]*)$ /user.php?id=$1 [L] 
+0

非常感謝你的代碼完美工作! – user3251426