Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wordpress自定义URL访问不工作_Wordpress_.htaccess - Fatal编程技术网

Wordpress自定义URL访问不工作

Wordpress自定义URL访问不工作,wordpress,.htaccess,Wordpress,.htaccess,我在wordpress中有一个URL需要更改 http://www.somedomain.com/site/other-jobs/view/?action=view&title=php-开发人员和作业ID=158 我想使此URL看起来像这样: http://www.somedomain.com/php-developer/158 我尝试设置访问规则: RewriteEngine On RewriteRule ^([^/]*)/([^/]*)$ /site/other-jobs/view/?act

我在wordpress中有一个URL需要更改

http://www.somedomain.com/site/other-jobs/view/?action=view&title=php-开发人员和作业ID=158

我想使此URL看起来像这样:

http://www.somedomain.com/php-developer/158

我尝试设置访问规则:

RewriteEngine On
RewriteRule ^([^/]*)/([^/]*)$ /site/other-jobs/view/?action=view&title=$1&JOB_ID=$2 [L]

但这不起作用,有人能帮我吗?

你可以试试这个插件:

它允许您重定向任何URL

它也可能是有用的

并确保:

1
AllowOverride All
在右侧目录上下文中建立


2
Options+FollowSymLinks
是在
RewriteEngine on

之前添加的,我不想使用任何插件,你能在代码中帮助我吗?