SocialEngine 4: Redirect non-www Requests to www

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!

Tags: , , , , , , , , , | Posted under SocialEngine | RSS 2.0

Author Spotlight

Andrew Cross

Andrew Cross

Hi, I'm Andrew. A am a 25, ICT Administrator which offers support to company's around the South Wales Area. I have created a few social sites for myself and other company's. So far 2 out of 3 have been successful using the powerful SocialEngine Script. I continue to try and help the community of SocialEngine by giving Support and Technical Help where possible.

Leave a Reply

Your email address will not be published. Required fields are marked *


8 − 2 =

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>