We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9991
    • 2 Posts
    Hello. I am hosting a site on GoDaddy. I have searched and searched for solutions to get the friendly URL’s to work, with no luck. Can someone please give me a hand? My .htaccess reads 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 /ecbwebdesign.com
    
    # 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.ecbwebdesign.com -- used with SEO Strict URLs plugin
    #RewriteCond %{HTTP_HOST} .
    #RewriteCond %{HTTP_HOST} !^ecbwebdesign\.com [NC]
    #RewriteRule (.*) http://ecbwebdesign.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
    
    
    


    This is my main .htaccess, not the one located in "manager".

    I am obviously doing something incorrect because GoDaddy says that mod_rewrite is always on. I have also enabled it in my configuration file.

    And if you haven’t figured this part out yet, I am not a PHP programmer so I know nothing about the code.

    Thanks.
      • 9207 ☆ A M B ☆
      • 2,475 Posts
      In order to get friendly URLS to work, you have to do 2 things: modify your .htaccess file AND change the settings in your MODx manager. Check out this article and video:

      http://www.tipsfor.us/2009/05/26/enabling-seo-friendly-urls-in-modx-part-vi-in-the-series/
        • 36678
        • 152 Posts
        The only different:
        RewriteBase /ecbwebdesign.com -> RewriteBase /

        Test it wink


          Multylingo 1.0 alpha (snippet + plugin) - For creation a full-featured multilingual site with MODx Evo
          My sites:
          Мисли, интересни мисли
          • 9991
          • 2 Posts
          I appreciate both of your help. I used both advices and was able to fix my problem. And I also found out that if you hit preview for the page, it will show the "index.php?id=2". But if you manually put it in the browser it will come up as the alias.

          Good stuff.
            • 9207 ☆ A M B ☆
            • 2,475 Posts
            Good, glad you got it working. Yep, that’s standard behavior for previewing pages: you’ll see the "id=xxx" version.