0
我想要在example.com/Sara和example.com/home和/ account等幾個特殊頁面上都有人的個人資料。多重衝突的htaccess RewriteRules
如何使我的兩個RewriteRules都能正常工作?
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^(.*)$ ./people.php?s=$1
RewriteRule ^home ./home.php
謝謝!
編輯:
想通了......!
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^(.*)$ ./people.php?s=$1
將您的答案發布爲答案,而不是對問題的修正......這樣您就可以將問題作爲答案關閉...... – sdolgy
會做,謝謝! – dot