Is there a way to get Apache to serve files with the question mark in their name?

Posted by ldrg on Stack Overflow See other posts from Stack Overflow or by ldrg
Published on 2010-03-18T05:36:54Z Indexed on 2010/03/18 5:41 UTC
Read the original article Hit count: 343

Filed under:

I scraped a bunch of pages using wget -m -k -E. The resulting files have names in the form foo.php?bar.html. Apache guesses everything after the ? is a query string, is there a way to tell it to ignore the ? as the query string delimiter (and see foo.php?bar.html as the requested file and not foo.php)?

To save you a trip to wget manpage:
-m : mirror recursively
-E : foo.php?bar becomes foo.php?bar.html
-k : convert links in pages (foo.php?bar now links to foo.php?bar.html inside of all the pages so they display properly)

© Stack Overflow or respective owner

Related posts about apache