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

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

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.