WWW returns server default page!

Hello, I have a problem with one domain here at Linode hosting:

http://www.innovativeenergysolutions.rs/

and

http://innovativeenergysolutions.rs/

WWW opens server default page, and non www opens website.

I called domain registrant and they say it's someting hosting related.

What should I do, I have more domains hosted here, this never happens before, usualy both www and non www points to the site, and then I use .htaccess to redirect. And now this :(

Thanks!

2 Replies

Ahh, never mind :)

it was my mistake with

ServerAlias - I forgot to put www there :)

Out of curiousity: The above implies that you have one vhost block per domain (or at least www/nonwww pair). And that in this vhost block you have your rewrite to push one to the other. I'd recommend turning that into two vhosts, one with the vhost you don't want and the rewrite, and the other with the good vhost. That way you're not checking the rewrite rule on every load of a page on the good site.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct