Do a hidden redirect to a different server? (do not show URL redirect)

Running Apache, we are doing a beta test of a web app that is actually hosted on a test server, but for our beta testers we want to give them a link to our main production server: www.company.com/newtoolname/ that redirects to the IP address of our test server: http://123.123.123.123/testtooldir/.

I tried using a PHP Location header command, but it shows the redirection to the new IP address.  How can I keep the user on the www.company.com/newtoolname/* URL but have the pages loaded from the test server?  We essentially don't want to publish our test server's IP address.  I saw some examples of using Mod_Rewrite or rewriterule?  I can use .htaccess files, but don't have admin access to our www.company.com webserver.

Thanks!
LVL 1
djs120Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

djs120Author Commented:
Ok, I read through that but I do not have access to the httpd.conf file since I am in a hosted environment.  Can I accomplish what is in that link with an HTACCESS file?
0
djs120Author Commented:
I wound up using frames for this, if there is a better way let me know:

<FRAMESET COLS="100%">

<NOFRAMES>
<p>
It appears your browser doesn't support frames.  For beta testing of FarmSelect, <a href="http://205.147.214.196/coding/beta/">click here</a>.</p>
</NOFRAMES>

<FRAMESET ROWS="100%">
  <FRAME SRC="http://hiddenurl.com">
</FRAMESET>

</FRAMESET>
0
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

mrielfCommented:
Hi, if the Proxy module isn't enabled by your server provider, then frames is the only solution. (but this metod doesn't fully hide your test servers ip address)
IF the Proxy module is enabled at your enviroment, then ProxyPass and ProxyPassReverse directives can be placed at .htaccess file.
0
djs120Author Commented:
Can you show me how to get it working in HTACCESS.  I couldn't get it working.
0
mrielfCommented:
Write directives to your htaccess file like to httpd.conf
If it's not works, then proxy module isn't enabled by your Server provider...
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
djs120Author Commented:
That doesn't help me at all, I needed specific examples, but I give up.  I'm sticking with frames, thanks anywho.
0
mrielfCommented:
If the Proxy Module enabled write this to your htaccess file...

ProxyRequests Off
ProxyPass /newtoolname/ http://123.123.123.123/testtooldir/
ProxyPassReverse /newtoolname/ http://123.123.123.123/testtooldir/
0
djs120Author Commented:
Doesn't work, proxy module is probably disabled.  Thanks.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Apache Web Server

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.