Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Re: Serving location after redirect from other domain

$
0
0
Hello,

I'm not sure what kind of redirect service you are using, but I see frames using curl:

# curl hanslammerts.nl/phpmyadmin
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta name='keywords' content="">
<meta name='description' content="">
</head>
<frameset rows="100%,*" frameborder="NO" border="0" framespacing="0">
<frame name="111" src="http://hanslammerts.servebeer.com/phpmyadmin">
<frame name="222" scrolling="NO" noresize>
<noframes><!-- -->
</noframes>
</frameset>
<body>
</body>
</html>

You might be better off using a "real" redirect, like a 301 which includes the URI, on the redirecting server. Since that server uses Apache, something like this in a .htaccess file might work:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^hanslammerts.nl [NC,OR]
RewriteCond %{HTTP_HOST} ^www. hanslammerts.nl [NC]
RewriteRule ^(.*)$ https://hanslammerts.servebeer.com/$1 [L,R=301,NC]

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>