私のクライアントには「https://buzzbehind.com/」(メインドメイン)と呼ばれるドメインがあります。また、いくつかのサブドメインがあります。サブドメインのURLの1つが "http://buzzmembers.buzzbehind.com"(BuzzMembers)です。codeigniterフレームワークで構築されたサブドメイン用の.htaccessファイルの作成方法
実際、メインドメインとサブドメインはSSL証明書を持っています。私たちがBuzzMembers以外の "https"を使ってurlを打ったときに働いています。
httpsでBuzzMembersのURLをヒットしようとすると、メインドメインの別のサブドメインBuzzAdmin32のレイアウトが表示されます。 URLが正しいかBuzzbehind(メインドメイン)の
のhtaccessファイル:。BuzzMemberの
DirectoryIndex home.php index.html index.htm index.php
RewriteEngine On
RewriteRule ^(promotionalpage)/(index)/([^/]*)/([^/]*)/([^/]*)/$ https://buzz.buzzbehind.com/promotionalpage/index/$3/$4/$5/ [r=301,L]
RewriteRule ^(productdetails)/(index)/([^/]*)/([^/]*)/([^/]*)/$ https://buzz.buzzbehind.com/productdetails/index/$3/$4/$5/?current_url=https://buzz.buzzbehind.com/promotionalpage/index/$4/$3/$5 [r=301,L]
RewriteCond %{HTTPS} on
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
のhtaccessファイル:BuzzAdの
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1%{REQUEST_URI} [R=301,QSA,NC,L]
Htacess min32:
#RewriteEngine on
#RewriteCond $1 !^(index\.php|images|robots\.txt)
#RewriteRule ^(.*)$ /index.php/$1 [L]
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?$1 [L]
</IfModule>
RewriteCond %{HTTPS} !=on
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
RewriteCond %{HTTP_HOST} ^www\.buzzadmin32\.buzzbehind\.com$
RewriteRule ^/?$ "http\:\/\/buzzadmin32\.buzzbehind\.com\/" [R=301,L]
httpsでBuzzMembersサイトを実行する必要があります。今はhttpだけで動いています。 助けてください。
BuzzMembersフレームワーク:CodeIgniterの事前
感謝。
?次に、このホスト名を含む証明書か、ワイルドカード証明書* .buzzbehind.comが必要です。あなたがサーバー上でどのようなフレームワークを使用するのかは何も分かりません。 –
@KenCheung親切にこのリンクをチェックしてください - > https://www.sslshopper.com/ssl-checker.html#hostname=buzzmembers.buzzbehind.com/ –
@KenCheung SSLに関するすべての設定を確認しました。しかし、それは私が望む.htaccessについての何かです。 –