We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28033
    • 925 Posts
    I spent four hours trying to get checkboxes in WLPE to change the /.filenamehere to /____.filenamehere. Tried almost 20 ideas, none of which worked. Then I think of the most obvious answer, .htaccess, and after a few tries, it works like a charm.

    Anyone here ever tried the more "logical" answers, and completely forget the most obvious, simplest answer (because you’re trying to think thoroughly and logically, therefore look for a inherently harder answer)?
      My Snippets
      -> PopUpChunk v1.0
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      The three great virtues of the programmer: hubris, laziness, impatience. In this case, laziness would come to your aid; it’s easier to think of the simplest answer in the first place.

      By the way, your posting your solution would satisfy my laziness, since then I wouldn’t have to think of it at all grin
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 28033
        • 925 Posts
        Quote from: sottwell at Feb 02, 2008, 12:40 AM

        The three great virtues of the programmer: hubris, laziness, impatience. In this case, laziness would come to your aid; it’s easier to think of the simplest answer in the first place.

        By the way, your posting your solution would satisfy my laziness, since then I wouldn’t have to think of it at all grin

        laugh at the first line.

        And here’s the solution. It basically takes advantage of a "wrong" filename like png2 and uses .htaccess to redirect the .png2 to off.png. It’s somewhat crude (and Google probably doesn’t like it tongue), but it’s not like the user’s gonna notice or Google’s gonna care that much about an image file. xd
          My Snippets
          -> PopUpChunk v1.0