We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37218
    • 6 Posts
    Hi All,
    I know that there are many this kind of subjects but I checked all solutions and this is still not working.
    I am using Revo 2.1.3-pl, placed .htaccess file on server, enabled furls in system settings and first of all aliases were not generating automaticaly (even if I selected to generate it in settings), when I am typing urls in browser it is still redirecting to homepage, even if I will type /?index.php?q=alias or q=alias.html it is not working.
    Here is my website: http://shadow.croanftp.com

    Big thanks for any advice!
      • 30912
      • 463 Posts
      Your FURLS will be http://shadow.croanftp.com/alias.html you have no need for the index.php stuff onnce FURLS are enabled, i checked your site, the furls are writing correctly according to the browser - with the exception of the tempaltes being all the same.

      try: http://shadow.croanftp.com/props.html
        • 37218
        • 6 Posts
        no, this is not the templates problem, please type index.php?id=2 and you will see about us page
          • 34084 ☆ A M B ☆
          • 756 Posts
          In most cases mod_rewrite is not enabled by default and has to be enabled, are you sure the mod_rewrite or the equivalent is enabled on your server/host?

          In order to better assist we'll need more information about your setup including the server OS and PHP version information. Sometimes the hosting provider has different methods so if you can share that as well.

          The alternative would be to write a quick test redirect rule in the .htaccess file to test outside of ModX, this would then help determine if something is not configured correctly on your ModX install or your server configuration.

          Simple rewrite rule to use in your .htaccess file just after the RewriteEngine On.

          RewriteRule ^test.html$ index.php [L]


          Then create simple html file called test.html and load the url and see what happens.

            Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
            Visit CharlesMx.com for latest news and status updates.
            • 37218
            • 6 Posts
            Charles I made this test, placed rule RewriteRule ^test.html$ index.php?id=2 [L] so it should redirect to about us page (id=2) and it did... so mod_rewrite is working (have few other websites on this server in modx evo and mod_rewrite works fine.
            In my opition there is something in modx because urls are being read properly but modx can not see proper alias and displays default page (home page).
              • 34084 ☆ A M B ☆
              • 756 Posts
              can you past your .htaccess file here, as long as you don't have anything else causing the rules for ModX not to be read then it appear like it should be functioning.

              Have you tried to clear all the site cache? Then you might also run through the setup for upgrade just to ensure all the properties are set correctly for the paths.

              Let me know.
                Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
                Visit CharlesMx.com for latest news and status updates.
                • 37218
                • 6 Posts
                Here is all from htaccess which is not hashed

                RewriteEngine On
                RewriteBase /
                RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

                but Charles, there is no problem in htaccess because even if you will type index.php?q=about-us it will not display proper page and this is everything what htaccess do
                  • 37218
                  • 6 Posts
                  if you have any idea what may be wrong in modx I can give you login details if you will write me your email,
                  Thanks for any help!I made many websites on modx evo and revo and first time I have this kind of problems...
                    • 34084 ☆ A M B ☆
                    • 756 Posts
                    The default for ModX htaccess with friendly urls is:

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


                    You should have the ht.access file that is packaged with ModX and just needs to be renamed to .htaccess. I'm not sure if you had this and just excluded it, so I'm just making sure is all.


                    Cheers
                      Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
                      Visit CharlesMx.com for latest news and status updates.
                      • 37218
                      • 6 Posts
                      but Charles, just like I wrote even if you will type index.php?q=about-us or about-us.html it is not displaying given page....so this is not htaccess problem