We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 47432
    • 48 Posts
    Hi,
    i'm new to modx, i'm trying to add a friendly url, as i am testing, i have installed modx on a subdomain:
    http://webstantly.com/seenmodx/
    i had that in the head: <base href="[[!++site_url]]" />
    i had yes to use fr urls and yes to use fr alias path
    i named my .htaccess

    and wrote that in the .htaccess
    # Rewrite www.domain.com -> domain.com -- used with SEO Strict URLs plugin
    #RewriteCond %{HTTP_HOST} .
    #RewriteCond %{HTTP_HOST} !^example-domain-please-change\.com [NC]
    #RewriteRule (.*) http://example-domain-please-change.com/$1 [R=301,L]
    #
    # or for the opposite domain.com -> www.domain.com use the following
    # DO NOT USE BOTH
    #
    #RewriteCond %{HTTP_HOST} .
    #RewriteCond %{HTTP_HOST} !^www\.webstantly\.com/seenmodx [NC]
    #RewriteRule (.*) http://www.webstantly.com/seemodx/$1 [R=301,L]

    but i think it's don' right, as i have my static website instead of the dynamic one

    If anybody can just tell what to write exactly in this htaccess with this domain, it would really be nice

      • 13226
      • 953 Posts
      If you have the system installed on a subdomain your url should look something like: subdomain.domain.com

      You are using a folder in the root of your main domain: domain.com/folder/

      With that, you have installed Revo into an already working site / folder.

      You now have "index.html" + "index.php" in the root of that folder - precedence is "index.html"

      You need to either remove the .html site, rename "index.html" to something else or move Revo to a different place

      Easy to test - goto: "yourdomain.com/index.html" and then goto "yourdomain.com/index.php"
        • 47432
        • 48 Posts
        Thank you so much, it works smiley)))
        and before i have change things in the htaccess

        RewriteEngine On
        RewriteBase /seenmodx



        # Rewrite www.domain.com -> domain.com -- used with SEO Strict URLs plugin
        #RewriteCond %{HTTP_HOST} .
        #RewriteCond %{HTTP_HOST} !^example-domain-please-change\.com [NC]
        #RewriteRule (.*) http://example-domain-please-change.com/$1 [R=301,L]
        #
        # or for the opposite domain.com -> www.domain.com use the following
        # DO NOT USE BOTH
        #
        #RewriteCond %{HTTP_HOST} .
        #RewriteCond %{HTTP_HOST} !^www\.webstantly\.com [NC]
        #RewriteRule (.*) http://www.webstantly.com/$1 [R=301,L]
          • 13226
          • 953 Posts
          The rewrite base is correct - but, you are not using a subdomain, I presume you are now aware of that.

          If you were to use a subdomain, you wouldn't need to change the rewrite base. It would stay as is "/" [ed. note: iusemodx last edited this post 10 years ago.]
            • 47432
            • 48 Posts
            Yes, i was not using the good term!
            Thank you very much again smiley