I am trying to redesign a website and i've set up localhost with copy of the server website. But connection is refused after redirect. I have this code
<meta http-equiv="refresh" content="0; url=http://localhost/vfino/v11">
the original is
<meta http-equiv="refresh" content="0; url=http://www.vfconsult.com.pt/">
i also have this .htacces in root
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]
I've tried to change the remote url to localhost but connection still refused. I apreciate very much your help. Thanks.
答案 0 :(得分:0)
If i have access http://vfconsult.com.pt/
it goes to localhost but if i access vfconsult.com.pt/v11/
it redirects to https://www.vfconsult.com.pt/v11/
that is the remote website(production)