Solved

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

Posted on 2015-02-10
3
54 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

I used to be SharePoint evangelist in our company, so my Outlook always full of questions about how to do this, or where I can find that. One day I found such an email with the following question: "how to attach 3-State workflow (one of the workflow…
There is one common problem that all we SharePoint developers share: custom solution deployment. This topic can't be covered fully in this short article, so all I want to do in this one is to review it from a development-to-operations perspectiv…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
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…

828 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