I have saved a website to my server using wget. The directory is shared with Samba, so all the Windows clients have to do is point their browser to the file share, and they can surf the page from the server. This works fine for the index page, but anything else fails.
From the server it works fine. Files are stored in the format:
Code:
index.html?page=about
Now, that is all well and good on Linux, but unfortunately, Windows will not accept a "?" in a file name. While it displays properly in Windows Explorer, when you try to open the file it doesn't do anything.
You also can't try to rename the file or modify it, since Windows screams about illegal characters in the file name.
Now, all of the programs that download websites for Windows save the files like:
Code:
index.html@page=about
The difference here is that while "?" is an illegal character in Windows, "@" isn't.
So here is my question, how can I get wget to use "@" instead of "?" when it names files?
I was thinking of just making a script to change the characters in the file names on the Linux side, but that isn't going to work since all of the links on the page are still going to point to "?".
So it needs to be done on the wget side. Does anybody know how this can be done?