Zen Cart Logo
Forums / General Questions / Links Have Double URL

Links Have Double URL

Locked

Views: 880

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
15 Mar 2009, 8:17 PM
#1
adamb avatar

adamb

New Zenner

Join Date:
Oct 2005
Location:
Colorado
Posts:
11
Plugin Contributions:
0

Links Have Double URL

I've been searching through the boards and couldn't find anything similar to the problem I'm having..

I was working on my 1.3.8a dev box last night, and broke something.. essentially what's happening, is if I click on a link, instead of
going to:

http://dev.mysite.com/index.php?main_page=index&cPath=8_33

It tries to go to
http://dev.mysite.com/dev.mysite.com/index.php?main_page=index&cPath=8_33

I'm not quite sure when it started happening. I had IE6, Firefox3, Chrome, and Safari(beta4) open, Safari was on top, so I was using it to reload and check some of the basic changes I was making. For some reason Safari still works while everything else is broken.. I switched over to Firefox at some point, and realized the links were all broken..

It's weird, Safari works totally fine.
Firefox Renders the page correctly, but with the double/broken links
IE and chrome can't even seem to find the stylesheet.

I'm running Apache2 with PHP 5.16 on a Centos5 box

I've went through all of my recent files that I was working on and cant figure out what it might have been. .

I'm getting ready to flip the switch on this, so last night I did a dry run on switching the site over.. basically just changing httpd.conf to point to the dev folder, and then changing includes/configure.php, and admin/includes/configure.php to point to the actual server.. That seemed to go well.. I'm not sure if it's related to the apache reboot, or what.. At first I thought maybe I had accidently pasted the address into DIR_WS_CATALOG, but it was set to '/' as it should be, I changed that to /test/ to see where it would append it in the address and it showed up like:
http://dev.mysite.com/dev.mysite.com/test/index.php?main_page=index&cPath=8_33 which is kind of what I thought would happen. I definitely think it's something with my apache/php settings, but I don't know what happened..

I literally changed

DocumentRoot /var/www/html/ZC136
to
DocumentRoot /var/www/html/ZC138

and then back again when I was done..

Any Suggestions at this point would be helpful.

Thanks

15 Mar 2009, 9:53 PM
#2
adamb avatar

adamb

New Zenner

Join Date:
Oct 2005
Location:
Colorado
Posts:
11
Plugin Contributions:
0

Re: Links Have Double URL

Update:

I've checked the page source, and all links are actually appearing correctly. It looks like it must be some sort of JS issue.

15 Mar 2009, 10:19 PM
#3
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,623
Plugin Contributions:
0

Re: Links Have Double URL

Please post your includes/configure and admin/includes/configure.php without your passwords

16 Mar 2009, 6:19 AM
#4
adamb avatar

adamb

New Zenner

Join Date:
Oct 2005
Location:
Colorado
Posts:
11
Plugin Contributions:
0

Re: Links Have Double URL

Kim,

After finally getting some rest this afternoon, I saw it.

in /includes/configure.php

  define('HTTP_SERVER', 'http:/dev.mysite.com');
  define('HTTPS_SERVER', 'https://dev.mysite.com');

Sometimes you just have to step away from the computer for a few hours and give the eyes a rest.

16 Mar 2009, 9:32 AM
#5
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: Links Have Double URL

those two defines should be the way it is .. one points to HTTP other to HTTPS ( ssl ) version of your site . i don't know the solution to your problem but those two defines need to be there .

16 Mar 2009, 11:42 AM
#6
flinders avatar

flinders

New Zenner

Join Date:
Nov 2007
Posts:
58
Plugin Contributions:
0

Re: Links Have Double URL

tony_sar:

those two defines should be the way it is .. one points to HTTP other to HTTPS ( ssl ) version of your site . i don't know the solution to your problem but those two defines need to be there .

one of the urls is missing a /