Page 1 of 1
mod_proxy?
Posted: Fri May 12, 2006 2:42 am
by rsmarsha
A host just told me that mod_proxy needs to be compiled into Apache for mod_rewrite to keep the rewritten url in the address bar, is this right?
Example
A rule is written so :
url/index/home
will show the page :
index.php?page=home
but will keep the url :
url/index/home
in the address bar.
I can't find any mention of mod_proxy in the installed modules on my own host, and the rule works fine there.
Posted: Fri May 12, 2006 9:33 am
by rsmarsha
It should not work on another server without mod_proxy compiled
Thats from oneandone (work host).
What i don't understand is if rewrite works on my own host without mod_proxy, why would oneandone needs it for the rewritten url to stay in the address bar. The whole point of mod_rewrite for me was to disguise long dynamic url's with a shorter version. I can't do that if the rewritten url redirects you back to the long one when used.
Anyone any idea if they are right?
Posted: Fri May 12, 2006 10:25 am
by timvw
Afaik mod_rewrite can work perfectly without mod_proxy (otherwise it would have been clearly mentionned in the documentation :p And i can't think of a configuration where it would be required... Perhaps with a reverse proxy.. But i still have to think about that specific situation :p)
Posted: Mon May 15, 2006 2:32 am
by rsmarsha
Thats what i thought, never read any mention of it.
Oneandone said :
It should not work on another server without mod_proxy compiled
So i'm a bit stuck really unless work change their servers.
Any idea why it would redirect to the longer url on firefox and not do anything on ie?