DPChallenge: A Digital Photography Contest You are not logged in. (log in or register
 

DPChallenge Forums >> General Discussion >> Any SharePoint 2010 / IIS 7 gurus around?
Pages:  
Showing posts 1 - 7 of 7, (reverse)
AuthorThread
05/17/2011 03:37:30 PM · #1
I have a site I'm working on that is built in SharePoint 2010 (Publishing site). Since this will be a public facing site I need to make the URLs prettier. I've tried to do this via IIS 7 URL Rewrite using regular expressions. The pattern I'm using tests out fine but when I enable the rule the site displays as a blank page. When I view source in the browser the only thing that is displayed is a skeletal HTML structure as if the page has no content, no master page or css attached. Below is what I am using as part of my inbound rule:

Regular Expression used:
^(.*?)([^/]+)$

Rewrite URL:
{R:1}style%20library/pages/{R:2}.aspx

Basically I want this: //domain.com/style%20library/pages/home.aspx

to become this: //domain.com/home.aspx.

What am I missing?


05/17/2011 04:03:12 PM · #2
Originally posted by yanko:

I have a site I'm working on that is built in SharePoint 2010 (Publishing site). Since this will be a public facing site I need to make the URLs prettier. I've tried to do this via IIS 7 URL Rewrite using regular expressions. The pattern I'm using tests out fine but when I enable the rule the site displays as a blank page. When I view source in the browser the only thing that is displayed is a skeletal HTML structure as if the page has no content, no master page or css attached. Below is what I am using as part of my inbound rule:

Regular Expression used:
^(.*?)([^/]+)$

Rewrite URL:
{R:1}style%20library/pages/{R:2}.aspx

Basically I want this: //domain.com/style%20library/pages/home.aspx

to become this: //domain.com/home.aspx.

What am I missing?


I dont know sharepoint, however with IIS you can adjust the home directory and change the root location, so everything starts at /pages/ unless you need it to access information from the style library page?
05/17/2011 04:21:57 PM · #3
Rewriting URL's in SharePoint is more complicated than just setting up the process in IIS. I looked into it a year and a half ago or so, and there are some solutions out there than can aid in this but none of them are perfect and I don't know what the support for it in 2010 is like. We never ended up implementing any of the solutions because there were other features on the site that they would not work with.

You could take a look at the post here and see if it's any help - It's for 2007 though.
//blog.mastykarz.nl/semantic-urls-in-moss-2007-imtech-sharepoint-semantic-urls-free-feature/
05/17/2011 04:22:56 PM · #4
Some other resources too at
//blogs.msdn.com/b/carloshm/archive/2008/10/16/url-rewriting-in-moss-2007.aspx
05/17/2011 04:24:43 PM · #5
Originally posted by Socom:

Originally posted by yanko:

I have a site I'm working on that is built in SharePoint 2010 (Publishing site). Since this will be a public facing site I need to make the URLs prettier. I've tried to do this via IIS 7 URL Rewrite using regular expressions. The pattern I'm using tests out fine but when I enable the rule the site displays as a blank page. When I view source in the browser the only thing that is displayed is a skeletal HTML structure as if the page has no content, no master page or css attached. Below is what I am using as part of my inbound rule:

Regular Expression used:
^(.*?)([^/]+)$

Rewrite URL:
{R:1}style%20library/pages/{R:2}.aspx

Basically I want this: //domain.com/style%20library/pages/home.aspx

to become this: //domain.com/home.aspx.

What am I missing?


I dont know sharepoint, however with IIS you can adjust the home directory and change the root location, so everything starts at /pages/ unless you need it to access information from the style library page?


The pages, stylesheets and javascript files reside in the style library/pages/ folder but not the master or page layout files. If I make that the root then I'm wondering if that will screw up the connection the pages have with the master file which is referenced in the code as a SharePoint dynamic token. I can't test at the moment since the business group is reviewing the test site but when I can I'll try that. Thanks.
05/17/2011 04:48:42 PM · #6
Originally posted by yanko:



The pages, stylesheets and javascript files reside in the style library/pages/ folder but not the master or page layout files. If I make that the root then I'm wondering if that will screw up the connection the pages have with the master file which is referenced in the code as a SharePoint dynamic token. I can't test at the moment since the business group is reviewing the test site but when I can I'll try that. Thanks.


worse case, you can make virtual directories to the prior folder, then repoint your stuff inside the html to that virtual directory.
05/17/2011 04:57:45 PM · #7
Originally posted by bfox2:

Some other resources too at
//blogs.msdn.com/b/carloshm/archive/2008/10/16/url-rewriting-in-moss-2007.aspx


Thanks. I'll look into those.
Pages:  
Current Server Time: 08/24/2025 07:10:46 PM

Please log in or register to post to the forums.


Home - Challenges - Community - League - Photos - Cameras - Lenses - Learn - Help - Terms of Use - Privacy - Top ^
DPChallenge, and website content and design, Copyright © 2001-2025 Challenging Technologies, LLC.
All digital photo copyrights belong to the photographers and may not be used without permission.
Current Server Time: 08/24/2025 07:10:46 PM EDT.