Solved

URL forwarding/masking in Linux

Posted on 2006-11-20
3
457 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
ID: 17983248
You can load the page in FRAME.
0
 

Author Comment

by:merimax
ID: 17983326
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
ID: 17984471
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Comparing Internet speeds via throughput 3 33
Cisco Firewall setup within a managed office 8 69
HSRP not working on N7K-c7018 3 41
policy routing to fw2 18 49
Don’t let your business fall victim to the coming apocalypse – use our Survival Guide for the Fax Apocalypse to identify the risks and signs of zombie fax activities at your business.
PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
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…
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…

932 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

12 Experts available now in Live!

Get 1:1 Help Now