Wordpress 将URL从帖子名重写为URL友好型
我目前在Wordpress中打开了带有帖子名称的永久链接 我想从中重写我的urlWordpress 将URL从帖子名重写为URL友好型,wordpress,.htaccess,mod-rewrite,rewrite,Wordpress,.htaccess,Mod Rewrite,Rewrite,我目前在Wordpress中打开了带有帖子名称的永久链接 我想从中重写我的url /property details/?Prop_ID=10006958&Prop_Name=test至/property details/10006958/test 当前htaccess文件是: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQU
/property details/?Prop_ID=10006958&Prop_Name=test
至/property details/10006958/test
当前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>
重新启动发动机
重写基/
重写规则^index\.php$-[L]
重写cond%{REQUEST_FILENAME}-f
重写cond%{REQUEST_FILENAME}-d
重写规则/index.php[L]
查看此处/property details/?Prop\u ID=10006958&Prop\u Name=test
未使用postname。你有没有在apache中重写mod_?