• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 567
  • Last Modified:

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!
0
djs120
Asked:
djs120
  • 5
  • 4
1 Solution
 
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now