The initial URL: http://world wide web.example.com/articles/articles/filename.pdf
yet others for the reason that directory are actually at: http://world wide web.example.com/articles/filename.pdf
We now have plenty of old links we do not control, however, that could indicat the very first URL. I've got a shared IIS 7 account which has an enabled "URL Rewrite" However, I'm getting difficulty using the actual implmentation. For instance, I am by using this matching pattern:
http://world wide web.example.com/articles/articles/(.*)$ and, based on the test dialog, it catches every demonstration of file for the reason that directory. Alternatively finish, I have specified a Redirect action, in which the redirect URL pattern is: http://world wide web.example.com/articles/. That appears like this must do it. I apply my changes, restart the application pool and... nothing comes about when I go into the first URL.
With large because of jcolebrand's input, I acquired this untangled:
To complete things i needed, you will find three fundamental steps for this process:
- Create an inbound rule in which the pattern matched up is basically any web request
- The "Condition" allows me specify which URL pathways to do something on
- The "Action" pane allows me perform the redirect
I used to be missing step #2, so I wasn't passing any functional information to step #3. Moving forward, some tips about what Used to do:
- Produce a new, blank inbound rule
- The "Asked for URL" pattern will match any URL posted
- Give a condition:
- Condition Input:
- See if input string "Matches the Pattern"
- Pattern: ^/(articlestechnical)/articles/(.*)$
- Make use of the "Test pattern…" to verify the pattern works not surprisingly. I additionally make use of the Test Results: Capture Groups for that backreference information.
- Under "Action" specify" Redirect, using the redirect URL being "/articles/"
- Redirect type: Permanent (301) which will help google regarding site indexing too
I didn't need to restart the application pool after making the above mentioned changes.