I wish to create a static copy of the site, retaining existing Web addresses. However , the Web addresses appeared as if:


and Apache doesn't want to obtain the file "index.php?id=XXX". Rather, it translates the request because the file "index.php" using the query "id=XXX".

How do i request Apache to prevent handling the question mark?

Finally, my solution:

1) relabel the files from "index.php?id=XXX" to "index.php_id=XXX"

2) Increase .htaccess:

RewriteEngine On
RewriteCond %{ENV:REDIRECT_STATUS} =""
RewriteCond %{QUERY_STRING} !=""
RewriteRule ^(.*)$ $1_%{QUERY_STRING} [L]

Escape the ? as %3f: http://www.example.com/index.php%3fid=XXX.

Should you list the file inside a directory which has indexes on, Apache will properly generate links of the format. You have to, however, rewrite the hyperlinks within the existing pages.

You can't request an internet server to prevent sticking towards the http protocol.