URL Rewriting and Anonymous Access with SharePoint – Part Six

23 Mar

Training Users

Users will need to be trained to use relative URL’s, or use the SharePoint link picker. The main reason for this is that if a user sets a link to http://admin.geeksinsuits.com/ca/default.aspx the link will not be rewritten correctly. Also if there are any references to images using the admin site they will get a 404 error.

Another thing to keep in mind is even though your current page is published and you can see all of the other parts of the page while editing, when anonymous some of these other parts might not be viewable. This is because you are authenticated, so double check the page anonymously as well just to make sure everything is published.

  • Use relative URL’s
  • Publish pages and approve to see changes anonymously
  • Publish and approve any documents or images in document library’s that will be linked to
  • Check pages as anonymous


This brings us to the end of my overly long “blog post”, hope this has been useful as this caused me a lot of personal pain trying to figure it out :). URL Rewriting isn’t as hard as you might have originally thought, you just need to know the ins and outs of how to set it up correctly and the pain points. But you do have to know how you want your site structured before thinking about applying this. Users will also need to understand how they need to create the content to ensure there are no authentication problems or bad hyperlinks.

Happy rewriting!!!


4 Responses to “URL Rewriting and Anonymous Access with SharePoint – Part Six”

  1. Michael Doyle March 23, 2011 at 3:13 pm #

    Excellent post. Even I can figure it out now. Thanks for putting this altogether in one spot.

    • Frank November 7, 2011 at 2:36 pm #

      Good Post. What if you have many subsites under the “CA” site? So you have a URL “CA/Rules/pages/default.aspx” and pages under the subsite “CA/Rules/pages/page1.aspx”

      • edithzor November 8, 2011 at 9:37 am #

        Hi Frank,

        Go to your rule for “Rewrite pages and file extension” (the rule which will re-add the /pages and .aspx).
        Replace the regex pattern with: ^(.*/)?(.*)$
        Then replace your rewrite-url with: {R:1}pages/{R:2}.aspx

        The difference here is the regex will always seperate the last word e.g. site/subsite/subsite/page, “page” will always be seperated and /pages and .aspx will be written around it.

        Hope this helps!

  2. Rebecca November 8, 2011 at 9:41 am #

    YEEAAA awesome

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: