Forums / General Questions / Url Links not working properly

Url Links not working properly

Locked

Views: 538

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
24 Oct 2010, 4:11 AM
#1
goshawk avatar

goshawk

Zen Follower

Join Date:
Aug 2006
Location:
Kihikihi, New Zealand
Posts:
220
Plugin Contributions:
2

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:

  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:

<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:

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?

Time is but an illusion, there is only "now"!

24 Oct 2010, 4:25 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

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.

24 Oct 2010, 5:00 AM
#3
goshawk avatar

goshawk

Zen Follower

Join Date:
Aug 2006
Location:
Kihikihi, New Zealand
Posts:
220
Plugin Contributions:
2

Re: Url Links not working properly

Thanks Dr Byte,

Works great now.

Goshawk

Time is but an illusion, there is only "now"!