We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32017
    • 151 Posts
    Options +FollowSymlinks
    RewriteEngine on
    rewritecond %{http_host} ^myurl.com [nc]
    rewriterule ^(.*)$ http://www.myurl.com/$1 [r=301,nc]

    added the above to

    get all my urls to redirect to use the www. prefix but its not working with the default modx rewrite rules sad

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

    any way around it?
      London web design - MODx specialists
      • 4310
      • 2,310 Posts
      Options +FollowSymlinks
      RewriteEngine On
      RewriteBase /
      
      RewriteCond %{HTTP_HOST} !^www\.
      RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L,NC]
      

      Is what I have to redirect everything to www.
        • 32017
        • 151 Posts
        no luck with using my friendly urls with this sad

        www. redirect is fine but other links go to index.php?q=aliasname instead of my friendly url
          London web design - MODx specialists