By toonverbeek1
Hey there,
For the life of me I can’t figure out what I’m doing wrong. My setup used to work fine but I’ve been tinkering with some settings and only later did I realise that my Apache (and/or .htacess) were redirecting requests from WWW.domain.com to domain.com/domain.com.
The domain that’s not redirecting is “www.timkranen.com”. Without the www it works fine, however.
I’m using multiple virtual hosts on my droplet. The other one , www.klassiekemuziek.tv (which is a wordpress site) is redirecting fine; i.e. from non-www to www.
Does anyone have any idea which settings i’m misconfiguring? Any help would be greatly appreciated!
pastebin .htaccess and virtual hosts: http://pastebin.com/ytva0fNg
Cheers, Toon
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
I think your request is not clear to me… Look like you either want to redirect your sites from www to none or from none to www. <br> <br>please explain so I can help correctly.
Sorry if that wasn’t clear. I want to redirect from www to non-www for all virtual hosts. One domain is already working, and the other(www.timkranen.com) isn’t redirecting - and I don’t know why. Hopefully that clarifies the problem!
when I go to your domain and type www.timkranen.com in the browser, this redirect where your domain goes to: http://timkranen.com/classicalmusicrookies.com/ <br> <br>I also get an error: Internal Server Error <br> <br>That means your configurations are wrong. you need to reconfigure them again. <br> <br>And again, what are you trying to do with www.timkranen.com?? is it redirect it to another domain or with/without www. because it is still not clear what you want to do…!!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.