2015-04-16 35 views

回答

3

WordPress不重定向或重寫請求。 index.php根據原始請求URI提供內容。它捕獲不存在的請求並從插件中計算出來。此代碼位於.htaccess的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> 

如果你想知道WP如何產生永久蛞蝓,看在wp-includes/formatting.php此功能:

function sanitize_title_with_dashes($title) { ... } 
0

在你的WordPress管理進入設置>永久鏈接,然後選擇「後的名稱」然後保存更改,你就全部設置好了。

相關問題