Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2009
    Posts
    40
    Plugin Contributions
    0

    Default how to add www to my url?

    HI all
    i have a site http://mysite.com ,every catory url starts with http://mysite.com .i would like to change to http://www.mysite.com~~,please tell me how to change and where to configure.
    thanks in advance!!
    thanks

  2. #2
    Join Date
    Apr 2009
    Posts
    13
    Plugin Contributions
    0

    Default Re: how to add www to my url

    you can add a .htaccess file in you root directory,



    add this code:

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


  3. #3
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: how to add www to my url

    You could also add thw www. to the paths in includes/configure,php and admin/includes/congigure.php

  4. #4
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,014
    Plugin Contributions
    61

    Default Re: how to add www to my url

    Quote Originally Posted by stevesh View Post
    You could also add thw www. to the paths in includes/configure,php and admin/includes/congigure.php
    The configure files as noted above need to be updated to include the www in the path and a redirect such as posted below added for the main page to only work with www.

    ~Melanie
    PRO-Webs, Inc. :: Recent Zen Cart Projects :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are NOT answered. You are welcome to contact us via our website for professional engagements.

  5. #5
    Join Date
    Feb 2009
    Posts
    40
    Plugin Contributions
    0

    Default Re: how to add www to my url

    Quote Originally Posted by stevesh View Post
    You could also add thw www. to the paths in includes/configure,php and admin/includes/congigure.php
    Thanks for all, really appreciate all(mprough,stevesh,justdoitrocky) helps
    it is working now.
    thanks again

 

 

Similar Threads

  1. v150 Admin URL - Can't Login With Forced WWW vs Non-WWW via .htacces
    By zywex in forum Basic Configuration
    Replies: 4
    Last Post: 29 Feb 2012, 09:07 PM
  2. .htaccess - Add "www." to URL (SSU)
    By bobthemolder in forum All Other Contributions/Addons
    Replies: 18
    Last Post: 30 May 2011, 12:27 PM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR