Link to home
Start Free TrialLog in
Avatar of Albert Widjaja
Albert WidjajaFlag for Australia

asked on

Windows Server 2102 R2 - IIS 8.5 redirection assistance ?

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.
Avatar of Dan McFadden
Dan McFadden
Flag of United States of America image

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
Avatar of Albert Widjaja

ASKER

I just want it to be redirected to standardise and make user easier to download the mobile app.
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
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.
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.
ASKER CERTIFIED SOLUTION
Avatar of Dan McFadden
Dan McFadden
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks Dan.
It works as expected.