简体   繁体   English

视口无法使用重定向域

[英]Viewport not working with redirect domain

I have a question I made a laravel website. 我有一个问题,我做了一个laravel网站。

Problem is, the files, database etc are hosted at mpspoker.toedeloepoker.nl 问题是,文件,数据库等托管在mpspoker.toedeloepoker.nl中

But the domain name that is visited is mpspoker.nl. 但是访问的域名是mpspoker.nl。 We bought that domain and made it link to mpspoker.toedeloepoker.nl but when I visit it through mpspoker.nl 我们购买了该域名,并将其链接到mpspoker.toedeloepoker.nl,但是当我通过mpspoker.nl访问该域名时

<meta name="viewport" content="width=device-width, initial-scale=1">

It's not working. 没用

When I visit mpspoker.toedeloepoker.nl directly it is working. 当我直接访问mpspoker.toedeloepoker.nl时,它正在工作。 工作中

And this one is the domain which people will be going to, and the viewport is not working. 这是人们将要进入​​的领域,并且视口无法正常工作。 不工作

Anybody knows how I can fix this? 有人知道我该如何解决?

The reason it is not working is because the HTML document of mpspoker.nl does not have aa viewport meta tag and loads mpspoker.toedeloepoker.nl via a frameset. 它不起作用的原因是因为mpspoker.nl的HTML文档没有视口元标记, mpspoker.toedeloepoker.nl通过框架集加载mpspoker.toedeloepoker.nl You can solve this in two ways: 您可以通过两种方式解决此问题:

  1. Replace the frameset on mpspoker.nl with a redirect. 用重定向替换mpspoker.nl上的框架集。 You can either use a meta refresh tag for this, or preferably a proper 301 redirect on the server side. 您可以为此使用元刷新标记,或者最好在服务器端使用适当的301重定向。
  2. Add a viewport meta tag to the html document on mpspoker.nl 将视口中继标记添加到mpspoker.nl上的html文档中

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM