我想添加別名到現有的.htaccess生成與WordPress。所以基本上我想保留當前的URL,但用一個不同的值覆蓋其中的一些URL,這會使URL充當別名。.htaccess在WordPress中的變化,將爲網址添加別名
所以,如果我去http //mysite.com/test-post/我希望它進入主頁,但仍然有「test-post /」作爲URL。如果可能的話,我希望每個URL的基礎上添加到.htaccess中。
現有的.htaccess如下:提前
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
感謝您的幫助:)