Thread: URL redirect

Results 1 to 8 of 8
  1. #1
    Join Date
    Dec 2008
    Location
    Los Angeles, CA
    Posts
    137
    Plugin Contributions
    0

    Default URL redirect

    my site works both way www. and none.
    When I enter www.mysite.com and then I click some link, it changes to mysite.com( no www). How can I redirect all this links to work with www?

    Thanks

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: URL redirect

    First change both of your configure.php files to be www.your domain.com.
    The edit your htaccess file and do what is referenced HERE
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Dec 2008
    Location
    Los Angeles, CA
    Posts
    137
    Plugin Contributions
    0

    Default Re: URL redirect

    Thanks Kobra for reply. I'm sorry but I was not able to fix it. Fiirst of all I was able t to find only one configure.php page which is in admin. I was not able to find second one and also I was not sure which line I need to edit.

    Also .htaccess was in admin folder and not in main. I have yahoo webhosting and it doesn't allow dot in front of htaccess; therefor I rename it to htaccess. do you think it would couse problem?

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: URL redirect

    Fiirst of all I was able t to find only one configure.php page which is in admin. I was not able to find second one and also I was not sure which line I need to edit.
    one in /includes the other in admin/includes
    Admin
    Code:
      define('HTTP_SERVER', 'http://www.xxxx.com');
      define('HTTPS_SERVER', 'https://www.xxxx.com');
      define('HTTP_CATALOG_SERVER', 'http://www.xxxx.com');
      define('HTTPS_CATALOG_SERVER', 'https://www.xxxx.com');
    other
    Code:
      define('HTTP_SERVER', 'http://www.xxxx.com');
      define('HTTPS_SERVER', 'https://www.xxxx.com');
    Also .htaccess was in admin folder and not in main.
    Do not mess with that one
    I have yahoo webhosting and it doesn't allow dot in front of htaccess; therefor I rename it to htaccess. do you think it would couse problem?
    That is a issue as it is the "dot" that enables it on a 'nix server
    What type of server does YaHoo provide?
    And why are you messing with YaHoo anyway?
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Dec 2008
    Location
    Los Angeles, CA
    Posts
    137
    Plugin Contributions
    0

    Default Re: URL redirect

    Well I was uploading zen cart into yahoo webhosting( the regular one, not e-comerce one) it didn't let me to upload that file so I have to rename and then it let me to upload. So, do you think I still have to edit .htaccess for redirect or since it already carries other name (without dot) I don't have to touch it?

  6. #6
    Join Date
    Dec 2008
    Location
    Los Angeles, CA
    Posts
    137
    Plugin Contributions
    0

    Default Re: URL redirect

    Besides main url rest of them I fixed. All pages fixed, beside mysite.com doesn't redirect to www.mysite.com, but when i click any like from mysite.com (it's good) it goes to www.mysite.com/myfolder

  7. #7
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: URL redirect

    What kind of server?
    Zen-Venom Get Bitten

  8. #8
    Join Date
    Dec 2008
    Location
    Los Angeles, CA
    Posts
    137
    Plugin Contributions
    0

    Default Re: URL redirect

    To be honest, I'm new I don't know that much, but it is yahoo web hosting, unlimited space. it is just basic one.

    I just found out that all pages are being forward to www.mysite.com except new product page. New Porduct page is still mysite.com. Any Idea why?

 

 

Similar Threads

  1. Weird URL redirect
    By Boatersplanet in forum General Questions
    Replies: 2
    Last Post: 28 Jun 2011, 11:51 PM
  2. How to redirect image URL?
    By musicfreer in forum General Questions
    Replies: 4
    Last Post: 17 Jun 2011, 11:53 PM
  3. Index Page URL redirect
    By Randa in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 17 Sep 2010, 04:16 PM
  4. Manufacturer redirect url wrong
    By bannerman in forum General Questions
    Replies: 2
    Last Post: 25 Jul 2009, 01:17 AM
  5. Banner URL wont redirect
    By wachtn in forum Basic Configuration
    Replies: 5
    Last Post: 29 Jun 2009, 06:40 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR