We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30157
    • 17 Posts
    I recently moved modx out of a directory and into the site root. Everything seems to be working fine, except for friendly urls. When I enable them, I get 403 errors on every page but the home page. They used to work when modx was in the old directory. My .htaccess file has the base set as / and the lines needed for friendlyurls are uncommented. Is there a way to fix this problem?
      • 8609
      • 607 Posts
      Did you clear your cache out after the move?
        • 30157
        • 17 Posts
        Yes I did
          • 5950
          • 44 Posts
          Did you check the path settings under Tools -> Configuration -> Interfaces & Functions? While you’re in there (if that’s the problem), you might as well update the path under File Manager, too.

          Hope that helps!
            • 3749
            • 24,544 Posts
            In .htaccess, is the subdirectory still listed in one of the rewrite rules?

            Do you have a <base href="[(site_url)]"></base> in the head section of your template?
              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
              • 30157
              • 17 Posts
              Yes i have [(site_url)] as my base. Here is my .htaccess:

              # For full documentation and other suggested options, please see  
              # http://svn.modxcms.com/docs/display/MODx096/Friendly+URL+Solutions  
              # including for unexpected logouts in multi-server/cloud environments  
              
              #Options +FollowSymlinks  
              RewriteEngine On  
              RewriteBase /  
              
              # Fix Apache internal dummy connections from breaking [(site_url)] cache  
              RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC]  
              RewriteRule .* - [F,L]  
              
              # Rewrite domain.com -> www.domain.com  -- used with SEO Strict URLs plugin
              #RewriteCond %{HTTP_HOST} .
              #RewriteCond %{HTTP_HOST} !^www\.example\.com [NC]
              #RewriteRule (.*) http://www.example.com/$1 [R=301,L]
              
              # Exclude /assets and /manager directories from rewrite rules  
              RewriteRule ^(manager|assets) - [L]  
              
              # For Friendly URLs  
              RewriteCond %{REQUEST_FILENAME} !-f  
              RewriteCond %{REQUEST_FILENAME} !-d  
              RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]  
              
              # Reduce server overhead by enabling output compression if supported.  
              #php_flag zlib.output_compression On  
              #php_value zlib.output_compression_level 5
              
              DirectoryIndex index.php