我怎样才能使这个.htaccess处理https。它现在欢迎http
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了我怎样才能使这个.htaccess处理https。它现在欢迎http相关的知识,希望对你有一定的参考价值。
我如何使这个继承的代码也处理https请求。我相信最低限度的调整可以做到,但我有限的.htacess阻止我
AddDefaultCharset utf-8
Options +SymLinksIfOwnerMatch
Options -MultiViews
RewriteEngine on
RewriteBase /
RewriteRule ^tags-(.*)/ tags.php?keyword=$1
RewriteRule ^tags-(.*) tags.php?keyword=$1
RewriteRule ^profile-(.*)/ profile.php?username=$1
RewriteRule ^profile-(.*) profile.php?username=$1
RewriteRule ^jobagency-([^/]+)/?$ agency.php?channel=$1 [QSA,L]
RewriteRule ^jobagency-([^/]+)/([0-9]+)/?$ agency.php?channel=$1&page=$2
RewriteRule ^jobagency-([^/]+)/search/?$ agency.php?channel=$1&search=search [QSA,L]
RewriteRule ^jobagency-([^/]+)/search/([0-9]+)/?$ agency.php?channel=$1&page=$2&search=search
RewriteRule ^jobagency-([^/]+)/category/?$ agency.php?channel=$1&category= [QSA,L]
RewriteRule ^jobagency-([^/]+)/category/([^/]+)/?$ agency.php?channel=$1&category=$2
RewriteRule ^agency-(.*)/ index.php?channel=$1
RewriteRule ^agency-(.*) index.php?channel=$1
RewriteRule ^category-(.*)/ category.php?cat=$1 [QSA,L]
RewriteRule ^category-(.*) category.php?cat=$1 [QSA,L]
RewriteRule ^(\d+)-(.*)-([^-]+)\.html jobs.php?id=$3&fbpageid=$1
答案
但是你附加的代码与协议根本没有关系。应该使用http和https。
以上是关于我怎样才能使这个.htaccess处理https。它现在欢迎http的主要内容,如果未能解决你的问题,请参考以下文章
如何在本地主机上使用 htaccess 制作 seo url? [关闭]