在我的根文件夾中,我安裝了wordpress,並且還有我的submenu.php,如果我使用/%postname%/ (默認).htaccess「如果鏈接以...開頭,則忽略所有規則」
因此,這是WP給我
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]
</IfModule>
# END WordPress
我需要什麼補充,以便再次調用
$('#submenu').load('submenu.php?cat=4');
的作品?
我結束了使用/index.php/%postname%/,因爲我沒有成功修改htaccess,我無意挖掘到ajax和wordpress的特殊關係。幾乎漂亮的鏈接工作沒有問題。如果有人想出解決方案,請告訴我。 – Daniel