Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JHipster: Redirect root domain to www

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

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?

like image 535
Orn Arnar Avatar asked May 12 '20 13:05

Orn Arnar


1 Answers

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.

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

like image 50
madacoda Avatar answered Nov 18 '22 16:11

madacoda