Forums / Templates, Stylesheets, Page Layout / Two forward dashes in main page code

Two forward dashes in main page code

Started by jcinsc76 on 20 Sep 2012, 3:58 AM · Views: 545

Results 1 to 4 of 4
20 Sep 2012, 3:58 AM
#1
jcinsc76 avatar

jcinsc76

New Zenner

Join Date:
Jul 2008
Posts:
14
Plugin Contributions:
0

Two forward dashes in main page code

Hello everyone,

This may sound silly, but I have noticed when I do a "view page source" from my main page, I see the following

<base href="http://www.chanceyscharms.com//" /> <link rel="canonical" href="http://www.chanceyscharms.com//" />

Notice the two "//" at the end of each of these lines just after the website name. Is this normal? I have never seen two there before and need to know if I should correct it or this is a normal feature of ZC 1.5? I have used Zen Cart in the past for different websites and again, I have never noticed this.

Thanks!
jcinsc76

20 Sep 2012, 4:41 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: Two forward dashes in main page code

You've been editing your configure.php files, and you've put a trailing / on the end of your HTTP_SERVER and/or HTTPS_SERVER definitions.

You don't want a trailing slash on those because the '/' in DIR_WS_CATALOG is automatically added (and DIR_WS_CATALOG should always start with '/' or be only '/')

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

20 Sep 2012, 11:50 AM
#3
jcinsc76 avatar

jcinsc76

New Zenner

Join Date:
Jul 2008
Posts:
14
Plugin Contributions:
0

Re: Two forward dashes in main page code

jcinsc76:

Hello everyone,

This may sound silly, but I have noticed when I do a "view page source" from my main page, I see the following

<base href="http://www.chanceyscharms.com//" /> <link rel="canonical" href="http://www.chanceyscharms.com//" />

Notice the two "//" at the end of each of these lines just after the website name. Is this normal? I have never seen two there before and need to know if I should correct it or this is a normal feature of ZC 1.5? I have used Zen Cart in the past for different websites and again, I have never noticed this.

Thanks!
jcinsc76

Thank you for the response. Where would I go to take this out? What file would I need to edit?

Thanks.
J

20 Sep 2012, 12:28 PM
#4
jcinsc76 avatar

jcinsc76

New Zenner

Join Date:
Jul 2008
Posts:
14
Plugin Contributions:
0

Re: Two forward dashes in main page code

Please dis-regard my last question. I figured it out and removed the second "/". Thanks again!

J