redirect problem

April 24, 2018 781 views
DNS Ubuntu 16.04

Hello, i have a problem:
i have set the redirect www and no-www in correct mode for my site. redirect correctly to

if write: all work and is open the page:

but if write whitout www:, the redirect is: host.comapp

how i can resolve this?
thank you

2 Answers

We’d be happy to help you sort this out. Can you share your current redirect configuration so we can take a look?

  • <VirtualHost *:80>
    RewriteEngine on
    RewriteCond %{SERVERNAME} [OR]
    RewriteCond %{SERVER
    RewriteRule ^ https://%{SERVERNAME}%{REQUESTURI} [END,NE,R=permanent]

Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!