We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 39929
    • 113 Posts
    my modx revo is installed in www/bcd/
    and I'm trying to use friendly url but after all my configuration it says 'Page not found' in www.accc.edu.au/bcd/about/.

    here is my htaccess is found in www.accc.edu.au/bcd/
    which has the following.

    # Friendly URLs Part
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} .
    # Force all pages to go to www.domain.com for SEO
    RewriteCond %{HTTP_HOST} !^www\.accc\.edu.au [NC]
    RewriteRule (.*) http://www.accc.edu.au/$1 [R=301,L]
    # Friendly URLs
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
    # Additional Settings Follow
    ExpiresActive On
    ExpiresByType image/gif A2592000
    ExpiresByType image/jpeg A2592000
    ExpiresByType image/png A2592000
    BrowserMatch "MSIE" brokenvary=1
    BrowserMatch "Mozilla/4.[0-9]{2}" brokenvary=1
    BrowserMatch "Opera" !brokenvary
    SetEnvIf brokenvary 1 force-no-vary
    


    anyhelp? I haven't found similar problem. thank you.


      • 36816
      • 109 Posts
      Try changing
      RewriteBase /


      to
      RewriteBase /bcd
      or
      RewriteBase /bcd/


      Need for trailing slash, in my experience, varies by hosting provider config.

      BTW -- this is addressed in the MODX docs, but it's easy to miss. It's in one of the purple sections of http://rtfm.modx.com/revolution/2.x/administering-your-site/using-friendly-urls
        • 39929
        • 113 Posts
        I forgot to rename ht.access to .htaccess. Thank you.