dive into mark

You are here: dive into markArchivesMarch 2007how not to

Friday, March 2, 2007

how not to

More search queries, because I just can’t resist…

Filed under , , ,

2 comments

  1. Too funny.

    Less funny, however, is the part where you got me all excited about the redirect options in .htaccess. I have been trying all morning to redirect some pesky 404 pages to their post-Drupal homes, to no avail. Here is what’s happening, and I defer to the wisdom of crowds(tm), or maybe Mark himself will chime in.

    Redirect permanent /foo http://example.com/bar

    …returns this in the browser’s address bar:

    http://example.com/bar?q=foo

    …which in turn gives a 404. Since “q=” is a GET variable, and none is specified, theoretically shouldn’t the browser ignore this and load the page anyway? I’ve been in and out of techy forums and nobody seems to have an answer to this. :-(

    All praise to anyone who can resolve this dilemma. Thanks!

    Comment by Ethan — Friday, March 2, 2007 @ 10:41 am

  2. Pingback by How to… « g.wp.com

Respond privately

I am no longer accepting public comments on this post, but you can use this form to contact me privately. (Your message will not be published.)



Recent Stuff For You, Special Price Stay Here
  • Greasemonkey Hacks
Good Stuff Buy The Cow Go Away
Dive Into Python
Powered by Google Drink The Milk Don't Steal

 

posts / comments
© 2001-8 Mark Pilgrim