We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 50628
    • 10 Posts
    Thanks to everyone, with help of sottwell i found that mod_rewrite doesn't work. And after i found that i should enable it with "RewriteEngine On" in my .htaccess file.
      • 3749
      • 24,544 Posts
      I'm not getting a 404 from any of your links.
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 49151
        • 7 Posts
        Hi. Have FURL problem too. Every FURL entered to the browser's address bar leads to a homepage.
        Was searching through the forum, stackoverflow and web in general. Can't figure out what is wrong, no suggested solution worked for me.
        .htaccess:
        RewriteEngine On
        RewriteBase /
        
        RewriteCond %{HTTP_HOST} .
        RewriteCond %{HTTP_HOST} ^www.(.*)$ [NC]
        RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
        
        RewriteCond %{HTTPS} !=on
        RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
        
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule ^(.*)$ index.php?q=%{REQUEST_URI} [L,QSA]
        

        www redirects and ssl forcing was switched off and on in all combinations – so not related.

        function
        apache_get_modules()

        is listing mod_rewrite among modules

        Related system settings:
        friendly_urls: yes
        use_alias_path: yes
        friendly_urls_strict: no
        


        All of my templates share a head chunk which contains
        <base href="[[!++site_url]]">


        pdoMenu produces nice FURLs like domain.com/parent/child.html, which leads to a home page (id = 1).
        My $_SERVER:
        'REQUEST_URI' => '/parent/child.html',
        'REDIRECT_URL' => '/parent/child.html',
        'REDIRECT_STATUS' => '200',
        'SCRIPT_FILENAME' => '/home/[path_to_root]/index.php',
        'QUERY_STRING' => 'q=/parent/child.html',
        'SCRIPT_URI' => 'https://domain.com/parent/child.html',
        'SCRIPT_URL' => '/parent/child.html',
        'SCRIPT_NAME' => '/index.php',
        'SERVER_PROTOCOL' => 'HTTP/1.1',
        'SERVER_SOFTWARE' => 'LiteSpeed',
        'REQUEST_METHOD' => 'GET',
        'X-LSCACHE' => 'on',
        'PHP_SELF' => '/index.php',
        


        HTTP response code: 200

        My error_page is set to a dedicated resource id. It works when i do
        index.php?id=fake_id

        And when I manually enter
        index.php?id=real_id
        it opens the page

        I made a clean install on a subdomain with a similar resources tree structure, enabled FURLs, copied .htaccess from the ailing domain and FURLs work there. Seems like I applied the very same settings.

        My extras: Ace, Babel, pdoTools, FormIt.

        It's a shared hosting.

        May I ask for any suggestions to cure my main domain FURLs? Could you please show a 'SCRIPT_URI' from your $_SERVER? Shouldn't it be a root index.php? [ed. note: pboiko last edited this post 6 years, 4 months ago.]
          • 3749
          • 24,544 Posts
          The first thing to try is to go to Manage -> Clear Cache -> Refresh URIs on the Manager's top menu.

          If that doesn't help, check in Content -> Content Types, and make sure the HTML file extension is set to .html

          If that doesn't help, it could be a permissions issue. To check, make yourself a sudo user and log in in the front end with the Login snippet. Then try a FURL and see if it works. If it does, it's definitely a permissions issue.


            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting
            • 3749
            • 24,544 Posts
            One more thing. The standard FURLs section of .htaccess looks like this:

            RewriteCond %{REQUEST_FILENAME} !-f
            RewriteCond %{REQUEST_FILENAME} !-d
            RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]


            Yours may be modified for Babel, but you might try the code above.
              Did I help you? Buy me a beer
              Get my Book: MODX:The Official Guide
              MODX info for everyone: http://bobsguides.com/modx.html
              My MODX Extras
              Bob's Guides is now hosted at A2 MODX Hosting
              • 49151
              • 7 Posts
              Quote from: BobRay at Nov 27, 2017, 11:03 PM
              One more thing. The standard FURLs section of .htaccess looks like this:

              RewriteCond %{REQUEST_FILENAME} !-f
              RewriteCond %{REQUEST_FILENAME} !-d
              RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]


              Yours may be modified for Babel, but you might try the code above.

              Thank you, Bob.
              You are often first to help smiley

              Alas, both suggestions didn't work for me. I'm afraid I have to make a new install and move templates and resources there sad
                • 3749
                • 24,544 Posts
                Sorry I couldn't be more help. I suspect that Babel is a factor.
                  Did I help you? Buy me a beer
                  Get my Book: MODX:The Official Guide
                  MODX info for everyone: http://bobsguides.com/modx.html
                  My MODX Extras
                  Bob's Guides is now hosted at A2 MODX Hosting
                • discuss.answer
                  • 49151
                  • 7 Posts
                  Anyway thank for try.

                  Don't think it's Babel to blame. Made a clean install, installed Babel also – everything works now.