JHipster:将根域重定向到www [英] JHipster: Redirect root domain to www

查看:61
本文介绍了JHipster:将根域重定向到www的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究搜索引擎优化,我希望将 https://pomzen.com 重定向到 https://www.pomzen.com .

I am working on Search Engine Optimization and I would like https://pomzen.com to be redirected to https://www.pomzen.com.

是否有可能在JHipster项目中完成,还是在项目外部完成?例如在DNS记录或Tomcat的Web配置中?

Is it possible to do it in a JHipster project, or is it done outside of the project? For example in DNS records or web config for Tomcat?

推荐答案

重定向必须在Web服务器级别完成.基本上,您需要Web服务器发送HTTP重定向(302或301). DNS无法在这里为您提供帮助.

Redirects have to be done at the web server level. Basically you need the web server to send an HTTP Redirect (302 or 301). DNS cannot help you here.

注意:有些托管DNS平台具有解决方法(Google Domains,Cloudflare).但是他们将无法处理HTTPS重定向.

Note : There are some hosted DNS platforms that have workarounds (Google Domains, Cloudflare). But they will not be able to handle HTTPS redirects.

这篇关于JHipster:将根域重定向到www的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆