We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18350
    • 4 Posts
    Having all kinds of problems with friendly URLs. On my staging site (on my laptop), can’t get the rewrite to work at all. Bummer, but it’s just the staging site.
    On my live site (still in development), it seems to be doing the rewrite ok (when I click on navigation, it goes to the friendly URL - ie, /features), but it gives me a 404 unless i go to the ?id=3 version of the page.

    Any thoughts?
      • 8609
      • 607 Posts
      Quote from: markadams at Apr 11, 2010, 04:00 PM

      Having all kinds of problems with friendly URLs. On my staging site (on my laptop), can’t get the rewrite to work at all. Bummer, but it’s just the staging site.
      On my live site (still in development), it seems to be doing the rewrite ok (when I click on navigation, it goes to the friendly URL - ie, /features), but it gives me a 404 unless i go to the ?id=3 version of the page.

      Any thoughts?

      Make sure that rewrite_module on your local dev server is enabled. I know that for Wampserver it’s not enabled by default, so take a look at your Apache module and make sure that you enable it. That should work.
        • 16702 ☆ A M B ☆
        • 536 Posts
        Quote from: markadams at Apr 11, 2010, 04:00 PM

        Having all kinds of problems with friendly URLs. On my staging site (on my laptop), can’t get the rewrite to work at all. Bummer, but it’s just the staging site.
        On my live site (still in development), it seems to be doing the rewrite ok (when I click on navigation, it goes to the friendly URL - ie, /features), but it gives me a 404 unless i go to the ?id=3 version of the page.

        Any thoughts?

        rename the file ht.access to .htaccess on root folder
          palma non sine pulvere
          • 3749
          • 24,544 Posts
          If you’re using XAMPP on the local install, mod_rewrite is disabled by default and FURLs won’t work. On Windows machines, check this file:

          xampp/apache/conf/httpd.conf

          For the Mac, it’s this file:

          Applications/xampp/etc/httpd.cnf

          Make sure that the following two lines are uncommented:

          LoadModule rewrite_module
          modules/mod_rewrite.so
          


          If you have put the MODx install in a subdirectory, you’ll need to edit the RewriteBase line in the .htaccess file to include the name of the subdirectory.

            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
            • 18350
            • 4 Posts
            Should have mentioned this, but I already renamed the ht.access file .htaccess in both the root folder and manager folder, and included the extra code that makes it non-case-sensitive. I checked the httpd files, and the rewrite module is uncommented. Still not working. Any other solutions? Thanks for the help!
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              If you’re using XAMPP on the local install, mod_rewrite is disabled by default and FURLs won’t work.
              Maybe that has changed; I just downloaded it and installed it on my Mac and it works out-of-the-box.
                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
                • 3749
                • 24,544 Posts
                That’s certainly how it should be. The Windows version may be like that now too.

                The last time I upgraded XAMPP it caused some troubles here so I went back to the old version and am still on it.
                  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
                  • 18350
                  • 4 Posts
                  I’m using MAMP on the Mac.
                    • 8609
                    • 607 Posts
                    Is your modx site installed in a folder? If yes, make sure you have

                    RewriteBase /whatever_the_folder_name_is

                    in your .htaccess file