I need to replace /xyz
with /index.html?dh=xyz
. I use the following config in httpd.conf:
RewriteCond %{QUERY_STRING} "!dh"
RewriteRule "^/(.*)$" "/index.html?dh=$1" [R]
This works perfectly if [R] flag is present, but if I remove it, the query string is missing from the resulting URL. I would like to use the internal rewrite (no [R]). Any ideas?
L
flag. Do you have any other directives (mod_rewrite, mod_alias)?