Results 1 to 5 of 5
  1. #1

    Default example.com ----> www.example.com

    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!

  2. #2
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,119
    Plugin Contributions
    6

    Default Re: example.com ----> www.example.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!

  3. #3

    Default Re: example.com ----> www.example.com

    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.

  4. #4
    Join Date
    Jan 2004
    Posts
    58,249
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: example.com ----> www.example.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.

  5. #5

    Default Re: example.com ----> www.example.com

    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]

 

 

Similar Threads

  1. Categories not listing in admin > catalog > categories section
    By kaleco in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 13 Aug 2009, 06:38 PM
  2. Admin > Reports > Sales Tax Report
    By batteryman in forum General Questions
    Replies: 7
    Last Post: 6 Feb 2008, 08:44 PM
  3. Admin > Tools > Template Selection = blank screen?
    By billmads in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 3 Jun 2007, 03:04 AM
  4. Replies: 1
    Last Post: 14 May 2007, 03:09 AM
  5. Config > Product Listing > Missing options 1.3.6
    By inksale in forum Basic Configuration
    Replies: 2
    Last Post: 18 Dec 2006, 04:41 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •