下劃線我有一個WordPress站點在Apache服務器上運行,我想重寫某些URL的SEO友好的方式,所以該怎麼做如何通過htaccess的重寫網址,並更換破折號
目前,我有這個URL
www.example.com/about-us/?id=what_we_do_1
www.example.com/about-us/?id=why_us
我希望它像
www.example.com/about-us/what-we-do-1
www.example.com/about-us/why-us
和FO R此
www.example.com/media/?id=team
www.example.com/media/?id=abc_xyz
我想是這樣的
www.example.com/media/team
www.example.com/media/abc-xyz
我目前的.htaccess就像下面
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
是你的網站在wordpress –