我正在尝试将附加参数附加到wordpress中。 例如,我有一个URL: http://example.com 我想将其更改为网址: http://example.com/this-example/ p>
我在想我能做到这一点 是在重写条件下的htaccess,但我不确定如何去做。 这就是我在这里想的。 p>
Htaccess strong> p>
< IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^ index \ .php $ - [L]
RewriteCond%{REQUEST_FILENAME}!-f
RewriteCond%{REQUEST_FILENAME}!-d
RewriteRule。 /index.php [L]
RewriteEngine on
RewriteRule ^ / this-example /(.*)/ /index.php?$1 [L]
< / IfModule>
Options -Indexes
code> pre>
div>