Jump to content

Need to have a Basic Redirect not Forced New Request, please help!


opera-man

Recommended Posts

Hi! all,

 

I hope one of you will come to my help. Actually, i am working on .htaccess file and wish to redirect the control on matching a pattern to a different server than on which i am working on. For ex:-

 

On sending request to http://www.myfirstdomain.com/folder/abc.php?id=1&name=xyz, the control should be redirected to http://www.myseconddomain.com/folder/abc.php?id=1&di=2 without changing the URL address. I mean i wish to have a Basic Redirect and not Forcing New Request.

 

The setting/configuration written by me are as follow:

 

##  if mod_rewrite existing.

<IfModule mod_rewrite.c>

Options +FollowSymLinks

RewriteEngine On

 

# Rules for rewriting URLS.

RewriteRule ^folder/(.*)$ http://www.myseconddomain.com/folder/$1

</IfModule>

 

The strange part is that if i redirect to the local file, then URL address does not get changed, but when redirected to different domain, URL address do get changed.  ???

 

Hope for early response....

Link to comment
Share on other sites

  • 3 weeks later...

Will someone come forward and help out me?

 

Hope for early response....

 

Hi! all,

 

I hope one of you will come to my help. Actually, i am working on .htaccess file and wish to redirect the control on matching a pattern to a different server than on which i am working on. For ex:-

 

On sending request to http://www.myfirstdomain.com/folder/abc.php?id=1&name=xyz, the control should be redirected to http://www.myseconddomain.com/folder/abc.php?id=1&di=2 without changing the URL address. I mean i wish to have a Basic Redirect and not Forcing New Request.

 

The setting/configuration written by me are as follow:

 

##  if mod_rewrite existing.

<IfModule mod_rewrite.c>

Options +FollowSymLinks

RewriteEngine On

 

# Rules for rewriting URLS.

RewriteRule ^folder/(.*)$ http://www.myseconddomain.com/folder/$1

</IfModule>

 

The strange part is that if i redirect to the local file, then URL address does not get changed, but when redirected to different domain, URL address do get changed.  ???

 

Hope for early response....

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.