我有一些使用.htaccess和mod_rewrite的經驗,但我無法得到這個工作。基本上我不想把所有的URL重定向到index.php,除非指向「public」子目錄中的現有文件。.htaccess RewriteRule如果存在於子目錄中
例如,如果我有一個像/public/logo.png文件我想這一點:
http://example.com/logo.png - > /public/logo.png http://example.com/logo2.png - >的index.php(logo2.png不存在) http://example.com/whatever - >的index.php
謝謝:)
「此網頁有重定向循環」 :( –
忘了一個條件,現在的工作 –