tongpo - 9:51 pm on Dec 4, 2012 (gmt 0) [edited by: tongpo at 10:03 pm (utc) on Dec 4, 2012]
"rewritten to..." is not a helpful way of saying things, because you know what you mean but we don't. I strongly suspect that you've got mod_rewrite doing the exact opposite of what you want it to do. So...
Without using the words "rewrite" or "redirect", say what happens. What, if anything, changes in the user's address bar? Where, if anywhere, does the request go?
#1 what currently happens, based on your direct experiments and looking at logs, and
#2 what do you want to have happen, if it's different.
Again: without using the words "rewrite" or "redirect". Or, ahem, anything similar.
Mod rewrite is doing exactly as I want it to. Converting an url without a query string www.widgets.com/whitewidgets/medium into a query string behind the scenes. Without mod rewrite doing this the URL would be www.widgets.com?widget=whitewidget&size=medium.
Nothing changes in the users adress bar only the url if mod rewrite wasnt used would be www.widgets.com?widget=whitewidget&size=medium and not www.widgets.com/whitewidgets/medium.
So the user on the page example.php clicks a link, the link he clicks is www.widgets.com/whitewidgets/medium, this is the url that appears in the users address bar once the new page has loaded. As far as the user is concerned, nothing changes at all. It appears he has clicked a static link.
Mod rewrite is converting the static url www.widgets.com/whitewidgets/medium to a dynamic url with a query string behind the scenes. Nothing at all changes in the users address bar, as far as they are concerned it is a static link.
Ok so the user is on page www.widgets.com/whitewidgets/medium. This page contains a HTML form which submits to itself and the resulting URL in the address bar is www.widgets.com/whitewidgets/medium?widgetone=blue&widget2=red. However I cannot access the widgetone and widget2 variables for some reason. Maybe its because the static url is really a dynamic ur and the query string is being appended to a query string if you get what I mean?
[edited by: tongpo at 10:03 pm (utc) on Dec 4, 2012]