Solved

URL forwarding/masking in Linux

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

749 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