opera-man Posted September 19, 2007 Share Posted September 19, 2007 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.... Quote Link to comment Share on other sites More sharing options...
opera-man Posted October 4, 2007 Author Share Posted October 4, 2007 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.... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.