Forefront TMG WebPublishing redirect to sub folders in websites

Posted on 2010-09-01
Last Modified: 2012-06-27
Hi all

I have a frustrating one here.  I am trying to publish websites, which with IIS work fine usnig default.asp pages to redirect them to subfolders.  for example redirects to

What I am trying to do is publish my Remote Desktop Services webpage through Forefront TMG.  Internally I have a redirect in the default.asp page that redirects

server.local to https://server.local/rdweb

That works great, and I can publish that fine using forefront, however in forefront it only publishes the root and so I have to type in /rdweb on my public page.  I hope I have written that clearly.  its taken me ages of trying to bring me here.
Question by:stefanjoc
  • 5
  • 4
LVL 10

Accepted Solution

simonlimon earned 500 total points
ID: 33590399
You have to use path mapping, right click the publish rule and select the paths tab, i will post a screenshot for you.

Author Comment

ID: 33590858
Hi ya.  I can see where the paths are, however even though the path mapping is set, I still have to type /owa and /rdweb?  A screen shot would be great :-)

Author Comment

ID: 33591942
I have just worked it out with your help.  Many many thanks, you have no idea how that was frustrating me.

So, what I have done is a mapping for

External path / to internal path /owa and its redirecting.  Excellent :-)

Author Closing Comment

ID: 33591946
Excellent, many thanks for your help
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

LVL 10

Expert Comment

ID: 33593958
you're welcome.

Author Comment

ID: 33604181
Hi Simon.  Any change I can have a look at that screenshot.  While I am able to redirect the paths for Remote Desktop Services, and it picks up the default.aspx file, I am getting

12202 Forefront TMG denied the specified Uniform Resource Locator (URL)

Scenario 1

the external path is set to / and the internal path is set to /rdweb

so I type in and it redirects it to with the error above

if I set external path to <same as internal> and then internal path /rdweb/* and go to address it works fine.  What am I doing wrong?  please :-)
LVL 10

Expert Comment

ID: 33604390
Set the internal path to /rdweb/* and the external to /*

I will have that screenshot on monday..
LVL 10

Expert Comment

ID: 33609692
Like I said, I would try setting internal path to /rdweb/* and the external to /*

That should be it.

Author Comment

ID: 33610025
Hi Simon

That worked great however the icons wont display on the remote webpage, I just get rex crosses as though it cant find the picture file.  In the end I set up a normal publishing rule, then above that, I set a copy of the rule, removed all the paths, set / to redirect to /* and then set a deny access and a rediret to the correct /rdweb folder.  Works a treat.  thanks for your help.

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

ISA Server detected routes through the network adapter LAN that do not correlate with the network to which this network adapter belongs What does this mean and how can one go about correcting it? In simple terms, this error message indicates t…
There are several problems reported according slow link speeds or poor performance in TMG 2010, UAG 2010 or ISA 2006. I want to collect here some of the common issues together to give a brief overview what can be the reason. Nevertheless, not all of…
Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now