Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/13.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/5.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 不带index.php的https动态URL_Wordpress_.htaccess_Mod Rewrite - Fatal编程技术网

Wordpress 不带index.php的https动态URL

Wordpress 不带index.php的https动态URL,wordpress,.htaccess,mod-rewrite,Wordpress,.htaccess,Mod Rewrite,我正在使用wordpress和whmcs桥接插件。。。问题是我的链接不是seo友好的。。。whmcs网桥插件生成如下URL https://mysite.com/whmcs-bridge/?ccce=cart&a=add&pid=1 注意这里没有index.php?就这个 我尝试过mod重写工具、htaccess advice和网络提供的所有其他方法。这就是我到目前为止能够制作的 Options +FollowSymLinks RewriteEngine on Rewrite

我正在使用wordpress和whmcs桥接插件。。。问题是我的链接不是seo友好的。。。whmcs网桥插件生成如下URL

https://mysite.com/whmcs-bridge/?ccce=cart&a=add&pid=1
注意这里没有index.php?就这个

我尝试过mod重写工具、htaccess advice和网络提供的所有其他方法。这就是我到目前为止能够制作的

Options +FollowSymLinks
RewriteEngine on

RewriteRule /ccce/(.*)/a/(.*)/pid/(.*)\.html ?ccce=$1&a=$2&pid=$3
在安全url为 mysite.com/ccce/cart/a/add/pid/1.html

这是不可能的

我已经将代码放在htaccess根目录中,并使用自己的htaccess指令创建了一个whmcs桥文件夹。。。还是不行。。。任何帮助都将不胜感激

同样,这是一个httpS url,不需要调用index.php,并且有3个参数需要调用。 ccce=购物车 a=添加
pid=1

由于网桥在脚本中重新写入URL,因此无法使其正常工作

$tmp=explode('://',cc_whmcs_bridge_url(),2);
    $tmp2=explode('/',$tmp[1],2);
    $sub=str_replace($tmp[0].'://'.$tmp2[0],'',cc_whmcs_bridge_url()).'/';
    $secure='&sec=1';
比如说