Post by hellogoodbye » Tue May 29, 2012 2:14 am

Hello,

How do I redirect www to non www? The add to cart function seems to stop working?

New member

Posts

Joined
Wed May 04, 2011 6:33 am

Post by bigchili » Tue May 29, 2012 4:05 am

add a rewrite rule in your .htaccess file.

Just Google "how to redirect from www to non www" and you will find what you need to add to the .htaccess.

User avatar
Active Member

Posts

Joined
Wed May 16, 2012 3:00 am


Post by ebeing » Fri Oct 12, 2012 4:33 am

RewriteEngine on
RewriteCond %{HTTP_HOST} ^mydomain.com [NC]
RewriteRule ^(.*)$ http://www.mydomain.com/$1 [R=301,L]

New member

Posts

Joined
Wed Jan 06, 2010 2:18 pm

Post by steppen321 » Wed Nov 07, 2012 9:34 pm

The question was how to redirect "www to non www" not the vice versa.

But I think everybody can guess how to alter the code posted above ;)

Newbie

Posts

Joined
Mon Dec 13, 2010 11:32 pm

Post by Calcite » Wed Nov 07, 2012 9:53 pm

What is the reasoning behind using this?

Active Member

Posts

Joined
Fri Dec 30, 2011 3:21 am

Post by steppen321 » Thu Nov 08, 2012 4:23 pm

SEO - Search Engine Optimization

For Google

http://domain.com
and
http://www.domain.com

are 2 separeate URL's.

So if you are not using the technique described above, you have the same content on to different URL's.

It's not terrible, but for SEO purposes it's better to consolidate your content on 1 URL.

Newbie

Posts

Joined
Mon Dec 13, 2010 11:32 pm
Who is online

Users browsing this forum: No registered users and 11 guests