[英]localhost refused to connect on redirect
我正在嘗試重新設計網站,並且已經使用服務器網站的副本設置了localhost。 但是重定向后連接被拒絕。 我有這個代碼
<meta http-equiv="refresh" content="0; url=http://localhost/vfino/v11">
原來是
<meta http-equiv="refresh" content="0; url=http://www.vfconsult.com.pt/">
我也有這個.htacces根
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/new/
RewriteCond %{REQUEST_URI} !^/imagens/
RewriteCond %{REQUEST_URI} !^/v11/
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
#RewriteRule ^(.*)$ v11/$1 [L]
RewriteEngine on
RewriteCond %{HTTP_HOST} ^vfconsult\.com\.pt$ [OR]
RewriteCond %{HTTP_HOST} ^www\.vfconsult\.com\.pt$
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^/?$ "https\:\/\/www\.vfconsult\.com\.pt\/v11/$1" [R=301,L]
我試圖將遠程URL更改為localhost,但連接仍然被拒絕。 非常感謝您的幫助。 謝謝。
如果我可以訪問http://vfconsult.com.pt/
它將轉到localhost,但是如果我訪問vfconsult.com.pt/v11/
它將重定向到https://www.vfconsult.com.pt/v11/
,即遠程網站(生產)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.