These urls are redirecting to http://www.example.com/?ringid=test;siteid=vincentvds instead of what I want which is http://www.example.com
3:52 pm on Jul 31, 2011 (gmt 0)
I don't think you can do it with mod_alias ("Redirect" as opposed to "Rewrite"). If you change it to a rewrite [httpd.apache.org], just stick a naked ? at the end and it will strip away any existing query strings.
what is happening is..apache not sending "?" character to server..so server not able to resolve the URL..
I have verified apache rewrite logs..below part is coming split uri=www.example.com/SampleSite/Which Terminal? -> uri=www.example.com/SampleSite/Which Terminal, args=<none>
How can I make sure that "?" will also be passed to server without truncating from apache? please suggest me..
2:57 am on Aug 27, 2011 (gmt 0)
Oh, ###. Do you mean that your url contains a literal question mark? It's not the beginning of a query string, but part of the actual filename?
:: staggering off to lie down with cold compress on forehead ::
5:08 am on Aug 27, 2011 (gmt 0)
Yes Lucy, my website has few URLs like that. And my client testing by creating different URLs for testing my application..like SampleSite/test-?-@ like this..if "?" appears..apache splitting URL into two parts and sending second argument as parameter...
How can I tell Apache don't do this? please help me on that.
7:03 am on Aug 27, 2011 (gmt 0)
.if "?" appears..apache splitting URL into two parts and sending second argument as parameter
Apache is working exactly as it should.
The question mark is a "reserved" character in the HTTP specification. It is the path to query string delimiter.
Also reserved are colon and slash. Don't break the HTTP specs.
7:25 am on Aug 27, 2011 (gmt 0)
Actually the request coming in UTF-8 encoded format like /SampleSite/Which Terminal%3F..but still apache considering it as "?" and splitting it..can't we use "?" in url other than query parameters? Please let me know your comments.
5:47 pm on Aug 27, 2011 (gmt 0)
You are not free to put any character you like in a URL.
Certain characters are reserved for specific purposes.
9:20 pm on Aug 27, 2011 (gmt 0)
It occurs to me that you (or your bosses) may be confusing the file name with the page title. The filename is seen only by computers (and by people who study the exact content of the browser's address bar). The title is the text that appears at the top of the window. It's basically just a special category of content and can be almost anything, provided it isn't too long and you've dealt with file encoding.
Something like <title = "Which Terminal?"> is perfectly fine ... so long as the file it's attached to is called, say, which_terminal.html