1
到index.php在.htaccess
我已經寫了這個:重寫所有URL白名單以外
AddDefaultCharset UTF-8
RewriteEngine on
RewriteCond $1 !^(index\.php|images|test|css|js|files|wiki|sitemap\.xml|robots\.txt|favicon\.ico)
RewriteRule ^(.*)$ index.php/$1 [L]
但我有兩個問題:
- http://example.com/ajax/index.php沒有轉換爲http://example.com/index.php/ajax/index.php
- 我可以看到任何列入白名單的目錄列表,如何防止這種情況?