This simple tutorial will teach you how to redirect non-www requests to www using .htaccess for social engine 4 or any other website.
This will basically create a 301 Permanent redirect.
All you have to do is to append/add to your .htaccess file and the result would be like this:
If you request “domain.com” it will automatically redirect to “www.domain.com”
# Redirect non-www to www mod RewriteCond %{HTTP_HOST} ^domain.com RewriteRule (.*) http://www.domain.com/$1 [R=301,L]
Simply change “domain.com” in the above two lines and you are ready to go.
What’s the use?
It’s good for SEO (search engine optimization)
Looking for quality SocialEngine Hosting? Look no further than Arvixe Web Hosting!