We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12652
    • 228 Posts
    The goal isn’t to get index.htm, that is happening.

    The goal is to get mydomain.com for links to the home page. If this was being hardcoded, then you would just link to http://mydomain.com or simply to / without the index.htm reference.

    mods: by all means, feel free to move to a more appropriate thread if need be.
      | Identity Developments delivers SEO focused web design and web presence services
      - it's not about websites, it's about your identity. |
      • 19986
      • 90 Posts
      If you mean that you need an easy way to output a link to the site, you could create a snippet and use the $_SERVER variable to get the domain, as follows:

      <?php
      return '<a href="http://'.$_SERVER['HTTP_HOST'].'/">[(site_name)]</a>';
      ?>


      I don’t know of a modx tag that does the same.

      Otherwise, I don’t understand your problem.
        • 36805
        • 354 Posts
        Quote from: identity at Mar 08, 2007, 01:00 PM

        The goal isn’t to get index.htm, that is happening.

        The goal is to get mydomain.com for links to the home page. If this was being hardcoded, then you would just link to http://mydomain.com or simply to / without the index.htm reference.

        mods: by all means, feel free to move to a more appropriate thread if need be.

        you might want to have a look at this:
        http://modxcms.com/SEO-Strict-URLs-1335.html
          • 12652
          • 228 Posts
          Mr.Dutchy,

          Excellent. Thanks for drawing my attention. That was exactly what I was looking for.

          thanks
            | Identity Developments delivers SEO focused web design and web presence services
            - it&#39;s not about websites, it&#39;s about your identity. |
            • 5463
            • 33 Posts
            Hey, having a problem getting my FURLs to work.

            I’m currently moving the site to a new host. They have given us a temporary address so we can get the site up and running on the new server before we send the request to switch from the old host to the new host. Now, my FURLs were working fine on the old server but they are not working at all on the new one. I think I’ve tried everything suggested within this thread to no avail. Then I thought it might have something to do with the temporary address which looks something like this http://servername.hostname.ie/~clientname

            I don’t trust that tilda!

            Could this be the problem or am I barking up the wrong tree?

            Cheers,
            Cliff.
              • 19986
              • 90 Posts
              That tilda is completely normal on linux/unix machines - it indicates that they’re probably using Apache’s mod_userdir and have placed your content in /home/clientname/public_html.
                • 28042 ☆ A M B ☆
                • 24,524 Posts
                However, friendly URLs won’t work until the real domain name is used for the URL. Or if they can be used with the temporary URL like that, I’ve never figured out how.
                  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
                  • 5463
                  • 33 Posts
                  Quote from: steph at Apr 10, 2007, 05:59 AM

                  That tilda is completely normal on linux/unix machines - it indicates that they’re probably using Apache’s mod_userdir and have placed your content in /home/clientname/public_html.

                  Okay - cool - thats exactly where the space is alright!

                  Quote from: sottwell at Apr 10, 2007, 06:07 AM

                  However, friendly URLs won’t work until the real domain name is used for the URL. Or if they can be used with the temporary URL like that, I’ve never figured out how.

                  Right - that’s a relief! So, just to make sure, when the site is changed over they should just start working again on their own?

                  Thanks for your help!
                  Cliff.
                    • 19986
                    • 90 Posts
                    They should, yes.

                    Btw, I’ve got friendly URLs working just fine on two machines - one is my main site, one is a mirror and they have different domain names. The rewrite rules don’t look at the domain name to do anything, so it shouldn’t matter where your site is hosted. There may be a MODx setting or something in your template that looks for the URL (like a base href), but you should be able to change them so that the domain name is never referred to. In fact, it is wise to avoid hard coding a domain name precisely for this reason.
                      • 5463
                      • 33 Posts
                      Quote from: steph at Apr 10, 2007, 06:23 AM

                      They should, yes.

                      Btw, I’ve got friendly URLs working just fine on two machines - one is my main site, one is a mirror and they have different domain names. The rewrite rules don’t look at the domain name to do anything, so it shouldn’t matter where your site is hosted. There may be a MODx setting or something in your template that looks for the URL (like a base href), but you should be able to change them so that the domain name is never referred to. In fact, it is wise to avoid hard coding a domain name precisely for this reason.

                      Excellent - thanks. I wasn’t using the base href bit anyway (well I was trying it out when I couldn’t get the FURLs working!).

                      I’ll just have to keep my fingers crossed when the change over happens and a close eye on it!

                      Cheers,
                      Cliff.

                      This discussion is closed to further replies. Keep calm and carry on.