We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36451
    • 264 Posts
    Hi,
    maybe somebody can help. I get a strange result when using the recommended
    <base href="[(site_url)]" />
    With friendly URLs on I get
    <base href="http://www.greenlabelspurchase.net:80:1336/" />
    without FURLs it results in
    <base href="http://www.greenlabelspurchase.net:80/" />
    There’s no problem, as long as I don’t use Jasons FirstChildRedirect - Snippet (http://modxcms.com/forums/index.php/topic,1394.0.html) together with IE/Win or Safari/Mac and have FURLs on.

    What can I do about this "80:1336"? Is this a webserver issue?
    • Check the W3C stuff on base tags, seems that closing the base tag is forbidden and that’s what we’ve been showing in our examples <base href="" /> instead of <base href=""> -- not sure if that has anything to do with your problem, as I’ve never seen anything like that, but it’s worth a try I suppose.

      Are you using any other hacks?
        • 36451
        • 264 Posts
        Actually I don’t use the base tag, it’s only for the documentation of this strange behavior. In fact, if FURLs are turned off, redirection works. Turned on, it does not in IE and Safari.

        And no, I’m not using any "hacks". Snippets only smiley

        Btw, has somebody else the FirstChildRedirect snippet in use? Would be nice to hear from you...
        • I do...I have some empty folders acting as category links, but I’m using a different snippet for the site’s site map. So I use the FirstChildRedirect for anybody that manages to find a live link to my category folders, and it’s working fine.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 36451
            • 264 Posts
            I will discuss the issue with my hosting provider. If we find the solution I will post it here. Maybe it helps somebody. Thank you for reply!
              • 36451
              • 264 Posts
              This is my problem:
              Quote from: yoomai at Jun 01, 2006, 02:33 PM

              With friendly URLs on I get
              <base href="http://www.greenlabelspurchase.net:80:1336/" />
              without FURLs it results in
              <base href="http://www.greenlabelspurchase.net:80/" />

              Okay, my hoster wrote me that every hosting package has it’s own apache - with a different portnumber. My portnumber is :1336. It seems that Modx adds the standard :80 port everytime in the [{site_url}] . Is there a way to disable this behavior? I need "<base href="http://www.greenlabelspurchase.net" />" instead of "<base href="http://www.greenlabelspurchase.net:80/" />" huh
              • This comes from the config.inc.php file in /manager/includes. You will probably need to modify lines 28 and 29; I’m not real sure what’s going on there, someone closer to the core could probably better advise you.
                  Studying MODX in the desert - http://sottwell.com
                  Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                  Join the Slack Community - http://modx.org
                  • 36451
                  • 264 Posts
                  Thank you Susan, good advise. I think we’re very close to the solution. Seems that Modx replaces the serverport with standard :80, hm, but I’m a php beginner. Can somebody give me a hint?
                  • Sounds like a very odd hosting configuration. Just hardcode the value of $site_url, replacing that logic which determines the value in order to solve for your situation -- seems like the server is fudging the actual port number.
                      • 36451
                      • 264 Posts
                      Thank you both, Susan and Jason. Now it works. In /manager/includes/config.inc.php I disabled line 29 - and that’s it.