Solved

links say thisdomain.org but I want them to redirect to mydomain.org

Posted on 2015-02-10
3
52 Views
Last Modified: 2015-04-29
Basic setup is this:

2 WFEs
1 app
1 DB

there's a web application called staging.mydomain.org  
The DNS entry (the site that everyone actually hits) is called oursite.mydomain.org.

When creating workflows etc.. the hyperlinks always point to staging.mydomain.org.   I would like to make it so that when the user clicks on that link, it actually directs them oursite.mydomain.org/whateverElseWasInTheLink

How do I do this?

Thank you!
0
Comment
Question by:Montoya
  • 2
3 Comments
 
LVL 3

Expert Comment

by:Matthew Borrusso
ID: 40602362
are the oursite.mydomain.org/whateverElseWasInTheLink and the staging.mydomain.org  static urls? My question being if the oursite.mydomain.org was going to be used for multiple customers where it would need to be customized?

if it is static, and you have access to the staging.mydomain.org site, then you can do a simple redirect.

You could create a text file and name it the default.htm and drop it in the root of staging.x:
<HTML>
<HEAD>
...
<META HTTP-EQUIV="Refresh" CONTENT="0; URL=http://oursite.mydomain.org/whateverElseWasInTheLink">
...
</HEAD>
<BODY>
...
</BODY>
</HTML>

That is if the staging site is dedicated.
This will redirect the browser to the new url. Unlike a cname dns record which keeps the header, this will work with https since the redirect name will also be in the certificate.
0
 
LVL 19

Author Comment

by:Montoya
ID: 40605454
Everything is internal. As for the links being static, well.... not really. What I mean is that the links are generated by workflows, and the links can read with any number of variations. The only that would not change is the domain name, of course.

Examples:

System creates:

http://staging.mydomain.org/IT/sample1.aspx      or
http://staging.mydomain.org/IT/sample3.aspx      or
http://staging.mydomain.org/IT/newpage.aspx 

I want all of those to go to :

http://oursite.mydomain.org/IT/sample1.aspx      or
http://oursite.mydomain.org/IT/sample3.aspx      or
http://oursite.mydomain.org/IT/newpage.aspx 

Does your method accomplish this?
0
 
LVL 3

Accepted Solution

by:
Matthew Borrusso earned 500 total points
ID: 40606479
No. My method would not work here.

When your work flow generates the dynamic url, thats going to be custom. The only thing I can think of to suggest is to see if you application can perform a masquerade domain function.

This way to URL's that are generated would match the oursite.mydomain.org fqdn, then you would just need a cname dns record to point to oursite to staging. it would appear as oursite in the browser.

The trick is the app, if the app gives you no options, there is really no easy way to do this without doing some screwy proxy or ARR type stuff. I dont know if you want to go that route.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

The Scenario: Let’s say you have a quote worksheet in Excel that you use to work up sales figures and such for your clients. You utilize SharePoint to manage and keep track of these documents. You would like values from your worksheet to populate Sh…
The vision: A MegaMenu for a SharePoint portal home page The mission: Make it easy to maintain. Allow rich content and sub headers as well as standard links. Factor in frequent changes without involving developers or a lengthy Dev/Test/Prod rel…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

803 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