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 !!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.