GET Variables Show Up in URL on .htaccess Rewrite of URLs That Don't Terminate with?

It sounds like folder exists in your web root. Since you haven't sent Apache a slash-terminated URL, and the requested resource is a folder, the DirectorySlash directive forces a redirect to the corrected URL Unfortunately mod_rewrite has a go at your request before this redirect occurs, and while it doesn't change the URI that is used in generating the redirect, the changes that it makes to the query string are not separated in a way that mod_dir knows not to include them. Therefore, when the redirect is sent back to the browser, it includes the query string generated by your RewriteRule A potential solution to this (other than turning off DirectorySlash which is not recommended for the reasons listed in the documentation) is to perform mod_dir s work for it as part of your rule set: RewriteEngine On RewriteCond %{REQUEST_FILENAME} -d RewriteCond %{HTTPS}s ^on(s)|off RewriteRule ^/$ http%1://%{HTTP_HOST}%{REQUEST_URI}/ R=301,L RewriteRule ^(.*)$ framework/index.

Php? Framework=$1 QSA,L.

It sounds like /folder exists in your web root. Since you haven't sent Apache a slash-terminated URL, and the requested resource is a folder, the DirectorySlash directive forces a redirect to the corrected URL. Unfortunately, mod_rewrite has a go at your request before this redirect occurs, and while it doesn't change the URI that is used in generating the redirect, the changes that it makes to the query string are not separated in a way that mod_dir knows not to include them.

Therefore, when the redirect is sent back to the browser, it includes the query string generated by your RewriteRule. A potential solution to this (other than turning off DirectorySlash, which is not recommended for the reasons listed in the documentation) is to perform mod_dir's work for it as part of your rule set: RewriteEngine On RewriteCond %{REQUEST_FILENAME} -d RewriteCond %{HTTPS}s ^on(s)|off RewriteRule ^/$ http%1://%{HTTP_HOST}%{REQUEST_URI}/ R=301,L RewriteRule ^(.*)$ framework/index. Php?

Framework=$1 QSA,L.

Tim, you are legit. Thanks for the awesome response and code. Is there anyway to make the portion of the redirect dynamic?(it may be https) – Kirk Aug 25 '10 at 3:44 1 @Kirk - No problem.

I think what I've just edited in should take care of the http/https problem, but let me know if you run into issues. – Tim Stone Aug 25 '10 at 3:57 Wish I could vote you up more than once. Thanks!

– Kirk Aug 25 '10 at 4:24.

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