这里是我重写代码:国防部重写不会对SSL工作
## File Security
<FilesMatch "\.(htaccess)$">
Order Allow,Deny
Deny from all
</FilesMatch>
#### Apache directory listing rules ####
DirectoryIndex index.php index.htm index.html
IndexIgnore *
#### Rewrite rules for SEO functionality ####
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteCond %{SERVER_PORT} 80
#RewriteRule ^(.*)$ https://www.genyx.co.uk/$1 [R,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*)\.html?$ index.php?seo_path=$1 [L,QSA]
</IfModule>
不过,这并不SSL网页上的工作,例如:
http://www.genyx.co.uk/terms-and-conditions.html
和
https://www.genyx.co.uk/terms-and-conditions.html
有人可以帮我做到这一点吗?
嗨,我看到你终于用你的mod_rewrite解决了这个问题。不幸的是,您忽略了我关于SSL证书链中缺失链接的提示。无论如何,我已经在上面的答案中添加了关于该问题的良好说明以及如何解决的链接。如果您仍然不相信稍等一些客户会收到有关不可信证书的警告。这取决于客户端浏览器和版本。 – 2012-04-30 17:34:30
你好,对不起,我雇了一个人来解决这个问题,因为这真的很紧急。我现在正在研究SLL错误。 什么是证书链? – Adam 2012-05-05 13:55:03
我已经链接了关于此的一个很好的描述(请参阅编辑2)。简而言之,您的认证提供商尚未使用安装在所有浏览器中的根证书来签署您的证书。所以你必须添加一个中间件来让你的证书在所有的浏览器上运行。详情请参见编辑2部分。 – 2012-05-06 16:14:53