Page is a not externally linkable
crobb305 - 7:31 am on Mar 27, 2010 (gmt 0)
jdMorgan,
Your last post seems to be working perfectly for cases where a spurious question mark occurs after or in the middle of an otherwise legitimate filepath.
For exmaple, it works perfectly for:
example.com/filename?blahblah -or-
example.com/filename?
But I am having problems getting the question mark removed when it occurs at the beginning of the filename as in:
example.com/?filename
In this case, it redirects to the homepage.
Do you have any suggestions? I have been spending some time trying to learn this, and searching around. My fear is adding code to strip that question mark, and messing up the portion of your code that is working perfectly.
I appreciate your help.