2011-07-15 34 views
0

我試圖改變一個wordpress ecom插件以通過ssl運行結帳。我設法改變插件使用共享ssl,但不斷獲取forbiden錯誤。wordpress - 在wordpress站點上使用共享SSL

下面的工作:

<IfModule mod_rewrite.c> 
RewriteEngine On 
RewriteBase/
Options FollowSymLinks IncludesNoExec ExecCGI 

RewriteCond %{SERVER_PORT} ^443$ 
RewriteRule ^[a-z0-9-_/]+$ mydomainname.co.uk/index.php 

#RewriteCond %{SERVER_PORT} ^80$ 
#RewriteRule ^index\.php$ - [L] 
#RewriteCond %{REQUEST_FILENAME} !-f 
#RewriteCond %{REQUEST_FILENAME} !-d 
#RewriteRule . /index.php [L] 

</IfModule> 

我以爲加入

的RewriteCond%{SERVER_PORT} ^(註釋掉其他WordPress的東西)80 $

如果在端口80但是doe,

只會觸發以下語句似乎沒有工作......任何想法的人?

** **工作

<IfModule mod_rewrite.c> 

RewriteEngine On 
RewriteBase/
Options FollowSymLinks IncludesNoExec ExecCGI 

RewriteCond %{SERVER_PORT} =443 
RewriteRule ^[a-z0-9-_/]+$ mydomain.co.uk/index.php [L] 

RewriteCond %{SERVER_PORT} =80 
RewriteRule ^index\.php$ - [L] 

RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteCond %{SERVER_PORT} =80 
RewriteRule . /index.php [L] 

</IfModule> 

回答

1

嘗試的第RewriteRule後加入[L]預選賽。

而且,你真的應該使用

RewriteCond %{SERVER_PORT} =443 

,而不是正則表達式。

+0

多數民衆贊成在一個,增加工作副本質疑 –