Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/12.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
Php 使用htaccess重写joomla分页sef url_Php_Wordpress_.htaccess_Mod Rewrite_Joomla - Fatal编程技术网

Php 使用htaccess重写joomla分页sef url

Php 使用htaccess重写joomla分页sef url,php,wordpress,.htaccess,mod-rewrite,joomla,Php,Wordpress,.htaccess,Mod Rewrite,Joomla,我想重写我的链接 到 我在htaccess中尝试此规则 RewriteRule ^article/page-([0-9]+)$ article?page=$1 [R=301,L] 在重写引擎打开的情况下,在重写之前移除 但它不起作用 请帮忙 RewriteCond %{QUERY_STRING} ^page=([0-9]*)$ RewriteRule ^(.*)$ http://my-domain.com/category/article/page-%1 [R=302,L]

我想重写我的链接

我在htaccess中尝试此规则

RewriteRule ^article/page-([0-9]+)$ article?page=$1 [R=301,L]
在重写引擎打开的情况下,在重写之前移除

但它不起作用

请帮忙

RewriteCond %{QUERY_STRING} ^page=([0-9]*)$

RewriteRule ^(.*)$ http://my-domain.com/category/article/page-%1 [R=302,L]