We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 45558
    • 13 Posts
    Hi guys,

    I need help with FURL. I don't know what I am doing wrong. On the web there are a few solutions but none of them works for me. I tried a bunch of code for .htaccess and none had been successful. Also, I turned on "Automatically generate alias" and "Use Friendly URLs" in system settings and then I got a different case. Works for .html files but for example if I enter my domain name eg: www.mydomain.com I only get content from index.html file with snippet codes and my website don't load MODx features, jQuery and CSS files, but inner pages works with HTML extension eg: www.mydomain.com/contact.html.

    I'm using static HTML files for templates and chunks. What I want to accomplish is to have friendly URLs for my website.

    I don't want PHP URLs like this one http://www.mydomain.com/index.php?id=1 or this one http://www.mydomain.com/index.php?id=4
    I want to accomplish SEO URls such this http://www.mydomain.com and something like this for example http://www.mydomain.com/contact/

    I really tried everything, but the documentation is not written well.

    Thank you in advance for your help.

    Kind regards,
    Deni
    • Hi

      You just should just need to rename the default ht.access file which comes with MODx to .htaccess and providing your upload that to your website root and have Friendly URLs enabled in MODx it should work for you.

      If that still does not work it would seem that perhaps your host has not configured their services to work with mod rewrite rules for your website.

      Aaron
        http://www.onesmarthost.co.uk
        UK MODX Hosting with love.
        • 45558
        • 13 Posts
        Hi onesmarthost,

        Thank you for your quick reply.

        Yes I did that first. Manually rename ht.access file via CMD line in Windows to .htaccess and after that I turned on friend URLs in system settings. If I enter my domain name I get only flat text from index.html file and for example if I enter www.mydomain.com/albumname.html then I get CSS, jQuery and everything loaded on the page. Although I want to accomplish this www.mydomain.com/albumname/

        Maybe I need to provide you with more information.

        So, I have 3 templates home, contact and inner. I made 3 chunks header, header_small and footer. Home template is using header and footer, contact template is using header_small and footer and for the last one, inner template using header_small and footer. All of the templates has different markup.

        For some reason, inner template is working. Home and contact not.

        This is an example code for header
        <!doctype html>
        <html>
        <head>
            <title>[[++site_name]] - [[*pagetitle]]</title>
            <base href="[[++site_url]]" />
            <meta charset="utf-8">
            <meta name="viewport" content="width=device-width, initial-scale=1.0">
            <meta name="description" content=" ">
            <meta name="keywords" content=" ">
            <meta name="author" content=" " />
            <link href="base.css" rel="stylesheet" type="text/css">
            <!--[if lt IE 9]>
                <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
            <![endif]-->
            <link href='http://fonts.googleapis.com/css?family=Bitter:400,700' rel='stylesheet' type='text/css'>
            <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro' rel='stylesheet' type='text/css'>
            <link rel="shortcut icon" href="img/favicon.ico">
            <link rel="apple-touch-icon" href="img/apple-touch-icon.png">
            <link rel="apple-touch-icon" sizes="72x72" href="img/apple-touch-icon-72x72.png">
            <link rel="apple-touch-icon" sizes="114x114" href="img/apple-touch-icon-114x114.png">
        </head>
        
        <body>
        
        <header class="header-small clearfix">
        	<a href="[[++site_url]]" class="logo"><img src="[[++site_url]]img/logo.png" alt="[[++site_name]]" /></a>
        </header>


        I don't know what else to try, I'm running out of ideas.

        Best regards,
        Deni
          • 45558
          • 13 Posts
          One more thing. When I enter www.mydomain.com it won't load any snippets too. This is what I get in browser when I view the source.
          [[$chHeader]]
          <div class="wrapper">
          	<h2 class="caption">This is my work</h2>
                  [[*content]]
          	<div class="content clearfix">
              	<div id="container">
          			[[$chAlbumCall]]
                  </div>
              </div>
          </div>
          [[$chFooter]]

          When I turn off FURL then it works when the URL is http://www.mydomain.com/index.php?id=1

          I really need this ASAP, so I'm really desperate now, because I don't know what else to do.

          Regards,
          Deni
          • Hi,

            It sounds like your server set-up is not quite right as the website should never just output PHP Code.

            What version of MODx are you using could you also let me know more about your set-up i.e. Version of windows, PHP Version

            Thanks
              http://www.onesmarthost.co.uk
              UK MODX Hosting with love.
              • 45558
              • 13 Posts
              onesmarthost,

              First I tried using xampp on localhost and it is the same thing. Now I'm trying it live when it is up on the server. So, I'm using the latest version of MODx modx-2.2.10-pl and on the server admin page says PHP version 5.3.25. OS is linux of course.

              Thank you for your help, I really appreciate it.
                • 45558
                • 13 Posts
                Hi guys me again,

                So okay, I think I'm getting closer.

                In "Content Types" I changed "File extension" for HTML from .html to /

                Now I finally have this kind of URLs and linking works great.
                www.mydomain.com/contact/
                www.mydomain.com/portfolio/projectname/

                However, still it is not working for the root URL www.mydomain.com Browser constantly renders this when I view the source code.
                [[$chHeader]]
                <div class="wrapper">
                    <h2 class="caption">This is my work</h2>
                        [[*content]]
                    <div class="content clearfix">
                        <div id="container">
                            [[$chAlbumCall]]
                        </div>
                    </div>
                </div>
                [[$chFooter]]


                And something odd is happening. If I input for example www.mydomain.com/asd or some text or one letter after www.mydomain.com/ that doesn't exist in MODx pages, then I can see my home page with everything how it supposed to be.

                Now it is a bit late, it is almost 3am in the morning and my concentration is very low, but I need this for tomorrow. Can anyone help me please.

                Thank you in advance,
                Deni
                  • 45558
                  • 13 Posts
                  Hi,

                  This is my second post and my second issue with MODx. I really like MODx and how simple customization is, with all its features, but help support is a bit bad. The first issue that I post I didn't get help from anyone, but I make some adjustments, a lot of read on the web and now it works and I like it more.

                  This one I tried everything that is on the web and can't get it to work. All I can see that everyone complaining about Friendly URLs and everyone has problem with FURL.

                  I don't know what to do anymore, can I contact MODx developers for the help? I really need this ASAP, I don't want to switch CMS because of one issue.

                  Guys, please help if you know solution to my problem.

                  Kind regards,
                  Deni
                    • 45558
                    • 13 Posts
                    Sweet mother of God, finally I did it!! It was a huge pain in the ars.