开发者

How can I configure Apache to map /talk.html?id=77 to the file that is called talk.html?id=77?

开发者 https://www.devze.com 2022-12-08 00:43 出处:网络
I have a web application of a conference that has been closed years ago. There is no real need for the application to be running any more so I\'d like to create static pages from the dynamically gener

I have a web application of a conference that has been closed years ago. There is no real need for the application to be running any more so I'd like to create static pages from the dynamically generated pages.

I ran wget http://site.name.org/ and now I have bunch of files called talk.html?id=77 with numbers from 1-300

How can I co开发者_如何学Cnfigure Apache to map the request of /talk.html?id=77 to the actual file that is called talk.html?id=77 ?

(Using Apache 2.2 )


You don't need to do any special configuration to Apache.

However, when requesting the file, you need to encode the ? in the URL so that it is not interpreted as a querystring.

The URL encoding of ? is %3F.

So the URL that should work for that file is /talk.html%3Fid=77

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号