Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

www vs Http://


Guest

Recommended Posts

Posted

I have just noticed the when i type www.domanname.co.uk my site doesn't work properly buy if i typehttp://donaminname.co.uk it works fine. Could anyone point me in to the direction needed to fix it

Posted
I have just noticed the when i type www.domanname.co.uk my site doesn't work properly buy if i typehttp://donaminname.co.uk it works fine. Could anyone point me in to the direction needed to fix it

Try adding this to your .htaccess file:

 

RewriteEngine On

RewriteCond %{HTTP_HOST} ^example.com

RewriteRule (.*) http://www.example.com/$1 [R=301,L]

Posted
I have just noticed the when i type www.domanname.co.uk my site doesn't work properly buy if i typehttp://donaminname.co.uk it works fine. Could anyone point me in to the direction needed to fix it

Perhaps because they are spelled incorrectly :lol:

 

Your webhost should be able to fix it. I prefer to not use the www, but that is personal choice.

Posted
Try adding this to your .htaccess file:

 

RewriteEngine On

RewriteCond %{HTTP_HOST} ^example.com

RewriteRule (.*) http://www.example.com/$1 [R=301,L]

 

 

Hi baddog does it matter where in the .htaccess file i add this

Posted
Hi baddog does it matter where in the .htaccess file i add this

I would put it at the end.

Posted
I would put it at the end.

 

 

Thank baddog but still hasn't worked, the problem is that i have put the flash rotator on the site and it this that doesn't show up when you put WWW. in front of the domain name

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...