Solved

URL forwarding/masking in Linux

Posted on 2006-11-20
3
458 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
forward schedule of change 1 51
logging buffered 8 47
eigrp routing loop 5 42
Wireless scope on sever with DSL connection 9 23
This is an article about my experiences with remote access to my clients (so that I may serve them) and eventually to my home office system via Radmin Remote Control. I have been using remote access for over 10 years and have been improving my metho…
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…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

778 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