1
我的.htaccess文件現在看起來(沒有別的):的.htaccess和_escaped_fragment_ =
DirectoryIndex index.php
RewriteEngine on
RewriteCond %{QUERY_STRING} ^_escaped_fragment_=(.*)$
RewriteRule ^$ test.php$1 [QSA,L]
# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# otherwise forward it to index.php
RewriteRule . index.php
當我試圖請求這個網址: http://example.com/test?_escaped_fragment_=blog=123&ggg=3
我看到HTML測試控制器,而不是我的test.php文件。請幫忙,我做錯了什麼?
非常感謝!有用! ) – Nikoole
不客氣。很高興知道它解決了。請接受答案。 – anubhava