?
Solved

URL forwarding/masking in Linux

Posted on 2006-11-20
3
Medium Priority
?
465 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

Are You Using the Best Web Development Editor?

The worlds of web hosting and web development are constantly evolving. Every year we see design trends change, coding standards adapt and new frameworks/CMS created. With such a quick pace of change it’s easy to get lost trying to keep up.

See if your editor made the list.

Question has a verified solution.

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

This program is used to assist in finding and resolving common problems with wireless connections.
This article is in regards to the Cisco QSFP-4SFP10G-CU1M cables, which are designed to uplink/downlink 40GB ports to 10GB SFP ports. I recently experienced this and found very little configuration documentation on how these are supposed to be confi…
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…
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…
Suggested Courses

762 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