We help IT Professionals succeed at work.

Windows Server 2102 R2 - IIS 8.5 redirection assistance ?

607 Views
Last Modified: 2018-05-22
Hi,

How can I configure the IIS 8.5 in my Windows Server 2012 R2 to redirect:

www.domain.com/app to point to the www.domain.com (under the same webserver) ?

Because at the moment:
www.domain.com/app --> is showing IIS 404
www.domain.com --> works fine as my primary website.

Thanks.
Comment
Watch Question

Dan McFaddenTechnical Lead - Active Directory
CERTIFIED EXPERT

Commented:
Is there a directory path that exists to that destination?  Or are you asking that any http error 404s get redirected to your home page?

Dan
Senior IT System EngineerSenior Systems Engineer
CERTIFIED EXPERT

Author

Commented:
I just want it to be redirected to standardise and make user easier to download the mobile app.
Dan McFaddenTechnical Lead - Active Directory
CERTIFIED EXPERT

Commented:
OK, but still need to know if the URL actually exists.  There are different ways to handle the situation.  If the path does not exist, you can capture the 404 and redirect.  If the path is real, you want to make sure you are only capture the path plus the default page, not any other pages in the path.

Dan
Senior IT System EngineerSenior Systems Engineer
CERTIFIED EXPERT

Author

Commented:
Dan,

The 404 is the generic reply from IIS. There is no virtual directory with the /app in the Windows Server 2012 R2 web server.

If I open www.domain.com using my iPhone, it prompt me to download the Apple Store app which is what I want.
Senior IT System EngineerSenior Systems Engineer
CERTIFIED EXPERT

Author

Commented:
Dan, this is the error when I use my PC Browser to visit www.domain.com/app:

Server Error

404 - File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.
Technical Lead - Active Directory
CERTIFIED EXPERT
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION
Senior IT System EngineerSenior Systems Engineer
CERTIFIED EXPERT

Author

Commented:
Thanks Dan.
It works as expected.

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions