Solved

URL forwarding/masking in Linux

Posted on 2006-11-20
3
455 Views
Last Modified: 2013-12-24
I have a dedicated server running Linux ES3 and running my own nameserver. I want to be able to do some simple URL forwarding and masking. In other words, let's say I have a domain name called www.MyNewSite.com. When someone visits www.MyNewSite.com I want the URL in the browser address bar to say www.MyNewSite.com but I want the page http://www.OtherWebsite.com?id=399393&page=dkfjjjj to be loaded. How can I do this in Linux?

0
Comment
Question by:merimax
  • 2
3 Comments
 
LVL 5

Expert Comment

by:flashwebhost
Comment Utility
You can load the page in FRAME.
0
 

Author Comment

by:merimax
Comment Utility
The page will have an order button on it so I don't want the user to then try to load the secure order page up in a frame. I also don't have control of the HTML on this page so I can't force things to open up in a new window. I am hoping for a solution using .htacess or DNS since that is where I do have control.

0
 
LVL 5

Accepted Solution

by:
flashwebhost earned 500 total points
Comment Utility
This is not easily possible.

If files is in same domain, you can do it with .htaccess with following content.

RewriteEngine On
RewriteRule ^$ /?id=399393&page=dkfjjjj

Since the page is on another domain, the solution is symlink to that folder from your site, then specify that path, that is on document directory of your new site do

ln -s /path/to/file-of-other-site-doc-root othersite  [L]

Then in .htaccess

RewriteEngine On
RewriteRule ^$ /othersite/?id=399393&page=dkfjjjj  [L]

0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Even if you have implemented a Mobile Device Management solution company wide, it is a good idea to make sure you are taking into account all of the major risks to your electronic protected health information (ePHI).
If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now