Jump to content

mod_rewrite redirect, newbie i am trying to learn but cant get what i want...


SarumonX

Recommended Posts

Hello,

 

We have 3 different web servers en now I am trying to redirect someone to the right web server by using mod-rewrite.  I don’t seem to get it working in the way that I want it to so I hope someone here is willing to help me out.

We have an url like this: http://www.example.com/?web=example1.com&da1=data1&da2=data2

 

Now I need a rewrite rule that looks at the web= parameter and when web=example1 it should rewrite to http://www.example1.com/?web=example1.com&da1=data1&da2=data2

 

And offcourse when web=example2 it should rewrite to:

http://www.example2.com/?web=example1.com&da1=data1&da2=data2

 

I am trying for a while now and I completely lost track of what to do. I have read a lot of tutorials, but I wasn’t able to fix it.

I hope someone can help me out and tell me if my whishes are possible and how they are possible.

 

Thank you all in advance !!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.