What do I need to do to forward everybody that visits my site at hardwoodcanes.com to WWW.hardwoodcanes.com?
My flash headers buttons wont work properly for some reason unless I put the WWW in my url
strange!
What do I need to do to forward everybody that visits my site at hardwoodcanes.com to WWW.hardwoodcanes.com?
My flash headers buttons wont work properly for some reason unless I put the WWW in my url
strange!
Canemasters
www.canemasters.com
Canemaster.......it's already doing that. I just typed in the URL without the www, and it took me straight to your site.
Love your buttons!
Teach them to shop and they will shop today;
Teach them to Zen and they will OWN a shop tomorrow!
Why thank you! I made them with adobe flash cs3.
It's not working for me though. I type in hardwoodcanes.com and it takes me to http://hardwoodcanes.com/
I guess I have 2 fixes possible... make the flash headers buttons work weather somebody is at http://hardwoodcanes.com/ or http://www.hardwoodcanes.com , or figure out why this forwarding works for some and not for others.
Last edited by canemasters; 7 Jun 2007 at 06:08 AM.
Canemasters
www.canemasters.com
Your .htaccess in the root of your Zen Cart folder can be used to handle this.
Add something like this, changing the_domain_name appropriately:Code:#### insert www if not present # RewriteEngine On RewriteCond %{HTTP_HOST} !^www\.the_domain_name\.com [NC] RewriteRule ^(.*)$ http://www.the_domain_name.com/$1 [L,R=301] # #### end www fix
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donations always welcome: www.zen-cart.com/donate
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
doh! I found the solution on google by searching 301 redirect. Thank you anyways though drbyte! Shouldn't this help the search engines as well?
I made mine say this
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^hardwoodcanes.com [nc]
rewriterule ^(.*)$ http://www.hardwoodcanes.com/$1 [r=301,nc]
Canemasters
www.canemasters.com
Bookmarks