mod_proxy?

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
rsmarsha
Forum Contributor
Posts: 242
Joined: Tue Feb 08, 2005 4:06 am
Location: Leeds, England

mod_proxy?

Post 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.
rsmarsha
Forum Contributor
Posts: 242
Joined: Tue Feb 08, 2005 4:06 am
Location: Leeds, England

Post 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?
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post 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)
rsmarsha
Forum Contributor
Posts: 242
Joined: Tue Feb 08, 2005 4:06 am
Location: Leeds, England

Post 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?
Post Reply