在 wordpress 中,当您按类型打开链接时需要:
site.ru/from-(*)
从地址打开信息:
site.ru/index.php?cat=2&from=$1
像这样尝试:
RewriteRule ^from-(.*) index.php?cat=2&from=$1
不工作...
在 wordpress 中,当您按类型打开链接时需要:
site.ru/from-(*)
从地址打开信息:
site.ru/index.php?cat=2&from=$1
像这样尝试:
RewriteRule ^from-(.*) index.php?cat=2&from=$1
不工作...
鉴于下面的评论,我将对代码和车辆的需求进行更改。
.htaccess
此调用http://example.com/from-hello world将在http://example.com/index.php?cat=2&from= $1打开文件,但命令行将显示http://example.com /来自你好世界。
索引.php
结果: