We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18817 ☆ A M B ☆
    • 205 Posts
    Good day all!

    I've installed MODX (v2.4.2) on subdirectory for staging the site before launch (Ex: rootdomain.com/staging). It's a fresh install in that location. For some reason, perhaps I overlooked a step in the setup, the links in the navigation (first tried static then pdoMenu) redirect to rootdomain.com vs going to their respective rootdomain.com/staging/pagename.html.

    The links themselves are outputting correctly (rootdomain.com/staging/pagename.html) but when clicked, they redirect. Is this something in the htaccess, system setting? Basehref is also outputting correctly (rootdomain.com/staging/).

    Thanks for taking the time to review the issue.
      Sal Baldovinos
      SEO & DIGITAL MARKETING

      ARIEL DIGITAL | Maximize Your Potential
      www.arieldigitalmarketing.com
      • 13226
      • 953 Posts
      Have you modified the "RewriteBase" in the .htaccess to reflect the folder ?

      example:
      RewriteEngine On
      RewriteBase /staging/


      If you haven't modified the .htaccess modify it, just for good times clear all cache and then check the site again [ed. note: iusemodx last edited this post 10 years, 8 months ago.]
        • 18817 ☆ A M B ☆
        • 205 Posts
        Quote from: iusemodx at Jan 22, 2016, 04:21 PM
        Have you modified the "RewriteBase" in the .htaccess to reflect the folder ?

        example:
        RewriteEngine On
        RewriteBase /staging/

        I did try that too with no luck. Not seeing an htaccess file at the root level either.
          Sal Baldovinos
          SEO & DIGITAL MARKETING

          ARIEL DIGITAL | Maximize Your Potential
          www.arieldigitalmarketing.com
          • 18817 ☆ A M B ☆
          • 205 Posts
          Quote from: mayhemchaos at Jan 22, 2016, 04:39 PM
          Quote from: iusemodx at Jan 22, 2016, 04:21 PM
          Have you modified the "RewriteBase" in the .htaccess to reflect the folder ?

          example:
          RewriteEngine On
          RewriteBase /staging/

          I did try that too with no luck. Not seeing an htaccess file at the root level either.

          I take that back ... root level had and I just now added "#" and it's still not working.

          #RewriteEngine on
          # Don't apply to URLs that go to existing files or folders.
          # RewriteCond %{REQUEST_FILENAME} !-f
          # RewriteCond %{REQUEST_FILENAME} !-d
          # RewriteRule ^(.*)$ http://www.domainname.com/? [R=permanent,L]
          
            Sal Baldovinos
            SEO & DIGITAL MARKETING

            ARIEL DIGITAL | Maximize Your Potential
            www.arieldigitalmarketing.com