Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Redirect/Hide Url

Posted on 2009-05-18
10
Medium Priority
?
555 Views
Last Modified: 2013-11-22
Is it possible to redirect an existing url on a website to another web page?  For example, can I redirect the Help link (http://www.experts-exchange.com/help.jsp) at the top of the Experts Exchange site to my own page?
Thank you!
0
Comment
Question by:johnrhines
  • 7
  • 2
10 Comments
 
LVL 39

Expert Comment

by:abel
ID: 24415267
Only if both links are on your own system and you have control over them. Otherwise, if I were on experts exchange and all of a sudden ended up on your site, I am sure that would be considered a large breach of security, but that's not what you mean, right?

In Apache you can configure redirects. In IIS you can do so too. Other servers must have similar methods.

In case you really want to fool somebody, you can put the hostname in the hosts file (available on both Linux and Windows) and have it point to your own IP address. That only works on the computer of the user. You cannot change DNS for people not in your reach (and you can do the same tricks on the router, of course).
0
 

Author Comment

by:johnrhines
ID: 24415301
This is only local that I am trying to do this, I'm not actually trying to change the url on the site.  Can I put in a specific url in the hosts file for the local computer?  If so, do you have an example?
0
 
LVL 39

Expert Comment

by:abel
ID: 24415325
The hosts file is at c:\windows\system32\drivers\etc (windows, I don't know about linux). A line like this:

127.0.0.1       localhost
192.168.1.65    www.e-e.com
0
Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

 

Author Comment

by:johnrhines
ID: 24415549
but that will redirect the entire web site.  Can I just redirect a specific URL?
0
 
LVL 39

Expert Comment

by:abel
ID: 24416960
not from the hosts file. You need to do that in your HTTP deamon. The hosts file is for TCP/IP, which is lower layer. The HTTP (application layer) must be served by an application that understands that protocol. Most common is to use a web server, but other options exist (as long as the tool you use understand the HTTP redirect it should be good).
0
 
LVL 39

Expert Comment

by:abel
ID: 24419509
May I ask what you are after? It seems like you want some proxy-like behavior: if someone goes to a previously loaded page, retrieve it from the cache. I am not sure, but maybe you can tell in a proxy to retrieve a certain page elsewhere (i.e., to make it serve the wrong page, actually).
0
 
LVL 39

Expert Comment

by:abel
ID: 24420251
Looking around a bit, I think this product might suit your needs. It does exactly this: redirect urls and it runs locally. Excellent for testing, also excellent for keeping certain sites out and to filter spam or ad content.
0
 
LVL 39

Accepted Solution

by:
abel earned 1500 total points
ID: 24420254
forgot the link: http://www.privoxy.org/
0
 
LVL 39

Expert Comment

by:abel
ID: 24748051
> but given the constraints of my environment, the answers do not apply to my situation.  

can you elaborate on these constraints? You haven't followed up with any comments and perhaps there's a way around these constraints that I can help you with? Furthermore, for the PAQ, I believe that the answers are quite valid because they do solve the original question for all trivial and non-trivial cases I can think of.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
As a financial services provider, your business is impacted by two of the strictest federal regulations on record: the Sarbanes-Oxley Act and the Gramm-Leach-Bliley Act. Correctly implementing faxing into your organization to provide secure, real-ti…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Suggested Courses

926 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