We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26921
    • 4 Posts
    Hi All,
    I am in a big problem regarding the Friendly url issue for my site. Just look at the link (i want it in the given way)


    here the last part ’contact’ is the document alias, and ’lumina-diem’ is the document root, some other documents are also belong to the same document root ’lumina-diem’ like ’about us’, but the above url is not working, it says 404 page not found error.

    So How can i show the www.MyDomain.com/document-Root/document/
    Modx version :
    My situation in Friendly url is :
    Use friendly URLs: Yes
    Prefix for friendly URLs: (Blank/empty)
    Suffix for friendly URLs: (Blank/empty)
    Allow duplicate aliases: Yes
    Use friendly alias path: Yes
    Use friendly aliases: Yes
    Automatically generate alias: Yes
    My .htaccess is as follows:

    # For full documentation and other suggested options, please see
    # http://svn.modxcms.com/docs/display/MODx096/Friendly+URL+Solutions
    # including for unexpected logouts in multi-server/cloud environments

    Options +FollowSymlinks
    RewriteEngine On
    RewriteBase /

    # Fix Apache internal dummy connections from breaking [(site_url)] cache
    RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC]
    RewriteRule .* - [F,L]

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

    # Exclude /assets and /manager directories from rewrite rules
    RewriteRule ^(manager|assets) - [L]

    # For Friendly URLs
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?q=$1 [L,QSA,NC]

    # Reduce server overhead by enabling output compression if supported.
    #php_flag zlib.output_compression On
    #php_value zlib.output_compression_level 5

    Any help is appreciated. smiley

    Note: If i add some spam text(Like : akjdak;adfjadj) in the .htacess then it give me 500 error, it means the .htacess works, but not sure the htdd.conf concept or if it is working or not)