Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2015-02-10
3
Medium Priority
?
59 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
[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 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 1000 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Note:  There are two main ways to deploy InfoPath forms:  Server-side and directly through the SharePoint site.  Deploying a server-side InfoPath form means the form is approved by the Administrator, thus allowing greater functionality in the form. …
When using a search centre, I'm going to show you how to configure Sharepoint's search to only return results from the current site collection. Very useful when using Office 365 with multiple site collections.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

610 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