Removing query_string from wildcard subdomain rewrite?

There's a Module called mod_dir that redirects the browser when it thinks you are trying to access a directory but are missing the trailing slash. When I test on my apache it only happens when the directory actually exists, I get redirected with a trailing slash, but the rewrite happens and I see the query string. Try forcing, internally, the trailing slash and when rewriting to dir/file, expressly use a trailing slash: Force trailing slash when accessing /abc without one RewriteRule ^abc$ /abc/ NC,L # these are the same RewriteCond %{HTTP_HOST}!

^domain.com NC RewriteCond %{HTTP_HOST} ^(www.)?(a-z0-9-+). Domain.com NC # Match against a trailing slash RewriteRule ^abc/$ dir/file. Php?

Var=%2 NC,L.

There's a Module called mod_dir that redirects the browser when it thinks you are trying to access a directory but are missing the trailing slash. When I test on my apache it only happens when the directory actually exists, I get redirected with a trailing slash, but the rewrite happens and I see the query string. Try forcing, internally, the trailing slash and when rewriting to dir/file, expressly use a trailing slash: # Force trailing slash when accessing /abc without one RewriteRule ^abc$ /abc/ NC,L # these are the same RewriteCond %{HTTP_HOST}!

^domain.com NC RewriteCond %{HTTP_HOST} ^(www.)?(a-z0-9-+). Domain.com NC # Match against a trailing slash RewriteRule ^abc/$ dir/file. Php?

Var=%2 NC,L.

Thanks, it worked! And sorry, I guess it was a real directory. In my head, I was thinking that I would be able to repeat this for ANY word for abc, directory or not.

I understand it now. – Tiffany Nov 16 at 16:43.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions