We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16905
    • 46 Posts
    I hope I am placing this post in the right place.

    I am having trouble with the QuickManager. I need it to work together with MaxiGallery so I can manage my Gallery images.

    I ran across this thread - http://modxcms.com/forums/index.php?topic=50904.0

    And this is true in my case, when I leave OFF the www. from my domain name QuickManager works, and the "Manage Pictures" button also appears in my page. Problem is, when I click the "Manage Pictures" button, the URL goes back to the www.domainname.com and the "Manage Pictures" button disappears. Argh!

    I am sure there is a fairly simple solution for a seasoned programmer, which I am not. Can anyone please explain to me how to make all my pages show up just domainname.com and not www.domainname.com? I think this will solve my dilemma.

    Or if there is a way to make QuickManager work with the www.domainname.com

    Thanks so much in advance...
    Leigh

      • 12379
      • 460 Posts
      Uncomment and update the appropriate lines in your .htaccess file (root directory):
      # 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]
        Mostly harmless.
        • 16905
        • 46 Posts
        Thanks,’hotdiggity’.

        I had another question. This is what I currently have in my .htaccess. I am a newbie, and I am sure it is a mess.

        How do I get the "index.php?q=$1" not to show in the browser’s URL bar??

        Thanks in advance.

        # For unexpected logouts in multi-server/cloud environments see:
        # http://svn.modxcms.com/docs/display/MODx096/Friendly+URL+Solutions

        <IfModule mod_security.c>
        # Turn the filtering engine Off
        SecFilterEngine Off
        </IfModule>

        php_flag register_globals off

        RewriteEngine On
        RewriteBase /
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]



        # Rewrite www.domain.com -> domain.com -- used with SEO Strict URLs plugin
        RewriteCond %{HTTP_HOST} .
        RewriteCond %{HTTP_HOST} !^MYDOMAIN.se [NC]
        RewriteRule (.*) http://MYDOMAIN.se/$1 [R=301,L]
          • 12379
          • 460 Posts
          Have you enabled Friendly URLs in TOOLS > CONFIGURATION ?
            Mostly harmless.
            • 16905
            • 46 Posts
            Yes, it works fine, but I would prefer the bar in the browser say
            http://mydomain.com/page.html

            instead of http://mydomain.com/index.php?q=page.html

            I was to get rid of the "index.php?q="

            I do not have that specified on my Friendly URL Tools Configuration.

            I think I have it specified on my .htaccess REWRITE... right?

            Leigh
              • 12379
              • 460 Posts
              Sounds like something’s not right with your htaccess file then. I’d reinstate the original one and then uncomment the rewrite domain bit. Once you’ve got that working then add any custom htaccess code (chunk by chunk) to it to see if that’s causing the problem.
                Mostly harmless.