.htaccess URL重写已停止使用https URL

.htaccess URL重写已停止使用https URL,.htaccess,url-rewriting,apache2,ssl-certificate,.htaccess,Url Rewriting,Apache2,Ssl Certificate,我正在开发一个基于PHP的网站。我通过HTTP URL和URL重写实现了它 假设我的域名是www.abc.com Options +FollowSymLinks RewriteEngine On RewriteBase / RewriteCond %{REQUEST_URI} !(/$|\.) RewriteRule (.*) %{REQUEST_URI}/ [R=301,L] RewriteCond %{REQUEST_FILENAME} !\.(pdf|js|ico|gif|jpg|

我正在开发一个基于PHP的网站。我通过HTTP URL和URL重写实现了它

假设我的域名是www.abc.com

Options +FollowSymLinks
RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_URI} !(/$|\.) 
RewriteRule (.*) %{REQUEST_URI}/ [R=301,L] 

RewriteCond %{REQUEST_FILENAME} !\.(pdf|js|ico|gif|jpg|png|css|rar|zip|tar\.gz)$
RewriteRule ^([^/]*)/([^/]*)$ index.php?%{QUERY_STRING}&current_event=$1 [L]
我以
http://www.abc.com/article
它工作正常。 现在,我的客户端在服务器上安装了SSL证书,我想将URL更改为HTTPS,但访问
https://www.abc.com/article
告诉我404错误


请指导我如何使上述规则同时适用于HTTP/HTTPS。

您可以浏览
https://www.abc.com
?@RunishKumar yes
https://www.abc.com
正在工作。