Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2006
    Location
    Kihikihi, New Zealand
    Posts
    230
    Plugin Contributions
    3

    Default Url Links not working properly

    Hi Team,

    I am trying to customise a zencart and have come accross an unusual problem:

    My url on my links are showing up as:
    http://www.my_domain.com/folder/www.my_domain.com/folder/indexphp?main_page=contact_us

    My configure.php has:
    PHP Code:
      define('HTTP_SERVER''www.my_domain.com');
      
    define('HTTPS_SERVER''www.my_domain.com');
      
    define('DIR_WS_PLANNER''/folder/');
      
    define('DIR_WS_HTTPS_PLANNER''/folder/'); 
    and my links in the header:
    PHP Code:
    <li><a href="<?php echo zen_href_link(FILENAME_CONTACT_US'''SSL'); ?>"><?php echo HEADER_TITLE_CONTACT_US?></a></li>
    zen_href_link in html_output_php:
    PHP Code:
    function zen_href_link($page ''$parameters ''$connection 'NONSSL'$add_session_id true$search_engine_safe true$static false$use_dir_ws_planner true) {
        global 
    $request_type$session_started$http_domain$https_domain
    Where would it duplicate part of the URL?
    Where else should I look, is there a function I could have altered?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    277

    Default Re: Url Links not working properly

    You need to have "http://" and "https://" in the HTTP_SERVER and HTTPS_SERVER settings, respectively.
    If you leave those as just starting with "www.", then you'll get the symptoms you're reporting.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    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.

  3. #3
    Join Date
    Aug 2006
    Location
    Kihikihi, New Zealand
    Posts
    230
    Plugin Contributions
    3

    Default Re: Url Links not working properly

    Thanks Dr Byte,

    Works great now.

    Goshawk

 

 

Similar Threads

  1. template sidebox links not working properly
    By TBI_ in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 7 Jul 2012, 04:12 PM
  2. v139h StockByAttributes Not Working Properly
    By lorddracoverash in forum All Other Contributions/Addons
    Replies: 9
    Last Post: 28 Feb 2012, 05:16 PM
  3. links are not working after install Simple SEO url
    By ratikanta in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 4 Sep 2010, 10:29 AM
  4. Banner url links to a pdf not working in Firefox
    By ellivir in forum General Questions
    Replies: 0
    Last Post: 22 Jun 2010, 12:06 PM
  5. firefox not showing links properly
    By surfstu in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 13 Aug 2006, 03:12 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