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

    would someone help me out?
    I have modx revo in a folder like this: domain/sub/modx
    this site is using babel successfully
    Now I would like to set up it to use friendly urls

    here is my .htaccess

    RewriteEngine On
    RewriteBase /munkak/modx/

    # Rewrite www.domain.com -> domain.com -- used with SEO Strict URLs plugin
    #RewriteCond %{HTTP_HOST} .
    #RewriteCond %{HTTP_HOST} !^dobodesign\.com [NC]
    #RewriteRule (.*) http://dobodesign.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\.example-domain-please-change\.com [NC]
    #RewriteRule (.*) http://www.example-domain-please-change.com/$1 [R=301,L]

    # Rewrite secure requests properly to prevent SSL cert warnings, e.g. prevent
    # https://www.domain.com when your cert only allows https://secure.domain.com
    #RewriteCond %{SERVER_PORT} !^443
    #RewriteRule (.*) https://example-domain-please-change.com/$1 [R=301,L]

    # The Friendly URLs part
    # redirect all requests to /en/favicon.ico
    # to /favicon.ico
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(en|hu)/favicon.ico$ favicon.ico [L,QSA]

    # redirect all requests to /hu/assets* to /assets*
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(en|hu)/assets(.*)$ assets$2 [L,QSA]

    # redirect all other requests to /en/*
    # to index.php and set the cultureKey parameter
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(en|hu)?/?(.*)$ index.php?cultureKey=$1 [L,QSA]
    #RewriteRule ^(en|hu)?/?(.*)$ index.php?cultureKey=$1&q=$2 [L,QSA]

    exactly what settings do I need in the manager?
    Does this site still relevant?
    http://rtfm.modx.com/display/revolution20/Using+Friendly+URLs

    many thanks