I am kinda new in apache config.
I wish to redirect my traffic from http://example.com
to http://www.example.com
I want www always appear in my visitor's browser's address bar.
Should i use mod_rewrite or anything else in httpd.conf?
I am kinda new in apache config.
I wish to redirect my traffic from http://example.com
to http://www.example.com
I want www always appear in my visitor's browser's address bar.
Should i use mod_rewrite or anything else in httpd.conf?
Add the following to your httpd.conf
<VirtualHost *:80>
ServerName adomainwihtoutwww.com
Redirect permanent / http://www.yourdomain.com/
</VirtualHost>