We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 43041
    • 3 Posts
    Hi There,

    I don't have a lot of experience with modx so bare with me.

    I installed revo 2.2, installation went fine, loaded in all my content but now none of my links work? Regular nor friendly.

    I have <base href="[[++site_url]]" /> below my title in my header

    I tried linking like this <a href="[[*1]]"> & this <a href="[[*sample]]">. Neither worked. Whatever i click it just stays on my homepage...

    Let me know what kind of info you need?

    Also, I know this is to do with my .htaccess but not im not sure how to solve. When you go to the domain it comes up as www.domain.com/public_html/Public_html .... .... ...

    My .htaccess sits above my public_html directory

    # Friendly URLs Part
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} .
    # Force all pages to go to www.domain.com for SEO
    RewriteCond %{HTTP_HOST} !^www\.sampledomain\.com [NC] RewriteRule (.*) http://www.sample domain.com/$1 [R=301,L] <--- Changed "sample domain" to my domain name
    # 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 [ed. note: cruiseguy last edited this post 13 years, 6 months ago.]
      • 40092
      • 265 Posts
      I assume you are linking to a document? You should then use ~.

      e.g
      [[~42]]


      where 42 is the document id.
        • 28042 ☆ A M B ☆
        • 24,524 Posts
          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
          • 10208 ☆ A M B ☆
          • 1,780 Posts
          That .htaccess is probably part of the url problem. Unless you need .htaccess above the public_html folder for some reason (doesn't look like you need it for php), then don't use it. The .htaccess that you need for MODX is named ht.access and is located in install folder for MODX (came with the MODX installation). Modify that file if needed and leave it in the root/install folder.
            Frogabog- MODX Websites in Portland Oregon
            "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
            Having server issues? These guys have MODX Hosting perfected - SkyToaster
            • 3749
            • 24,544 Posts
            But don't forget to rename it to .htaccess. wink
              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