簡體   English   中英

使用mod_proxy重定向到https子域?

[英]Using mod_proxy to re-direct to a https sub-domain?

這是我之前所問過的 ,並提出了使用mod_proxy的建議解決方案,但不幸的是,即使這樣我也無法正常工作:(

我想從常規鏈接重定向到https子域,因此例如https://photofileltd.co.uk/index.php?page=services將顯示https://secure.photofileltd.co.uk /new_site/index.php?page=services-但保留網址!

這是我的.htaccess文件,我添加了'P'來加載代理內容,但是我只收到500個內部服務器錯誤:

Options +FollowSymLinks -MultiViews
# Turn mod_rewrite on
RewriteEngine On
RewriteBase /

RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://secure.photofileltd.co.uk/new_site/$1 [L, P]

任何幫助或建議,將不勝感激,謝謝

如果找不到日志文件,則必須與Web主機聯系,以了解它們的存放位置。

但是,我會說您不需要mod_proxy ,我想您要做的是:

# Set options
Options +FollowSymLinks -MultiViews

# Redirect insecure requests to HTTPS
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://secure.photofileltd.co.uk/new_site/$1 [L,QSA,R=301]

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM