In order to automatize stuff, I need to recursively download a web page. I'm using wget as it's probably the most programmer-friendly tool available, using -r flag to trigger link following.
wget, hovewer, doesn't handle pretty urls, i.e. http://webpage/index.php/my/pretty/link, treating them as subdirectories.
Is there a solution to this problem? (I'd rather not modify that web page's source code)
EDIT: Problem solved
Thanks for your insightful replies!
I've managed to solve this problem - by doing minor modification to the mentioned web page, though.
What I did was simple: I've used my server's url rewritting features and redirected urls from http://webpage/my/pretty/link to http://webpage/index.php/my/pretty/link. Then, using following wget flags:
wget --mirror --page-requisites --html-extension --convert-links http://webpage/
Voila! It all works flawlessly (there are directiories created in the process, still, but it's trivial to handle it from this point with some sort of script).