0

I'm trying to set up my apache server to redirect domain.com to www.domain.com and I am having troubles. To save me re-posting where I'm at and what I've tried here is a link to my existing post on LQ.

http://www.linuxquestions.org/questions/showthread.php?p=5348110

1 Answer 1

2

All you need to do is to add redirect line to /etc/apache2/sites-available/domainname.vhost file for example:

<VirtualHost *:80>
    ServerName example.com
    Redirect permanent / http://www.example.com/
</VirtualHost>
1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.