URL rewriting

rated by 0 users
This post has 10 Replies | 4 Followers

Top 500 Contributor
Posts 60
Points 1,005
Rick Post Posted: Fri, Jul 25 2008 4:41 PM

I've been playing around with siteUrls.config today with very limited success. I must be missing something. Here's what I want to do:

Assume there is a page at Web/Themes/hawaii/blogs/MyPage.aspx. I don't want this path showing up in the address bar of the browser. Is there a way to show the user a path of /MyBlogs/MyPage.aspx, but still have it bring up the Web/Themes/hawaii/blogs/MyPage.aspx page?

Can these easily be remapped, or would it be easier to create a MyBlogs folder, move everything over there, and change all of the links in the code?

Thank you,

Rick

 

  • | Post Points: 35
Top 10 Contributor
Posts 2,423
Points 19,635
MVPs
Nick replied on Sat, Jul 26 2008 3:17 AM

Open up the SiteUrls.config file.  Look for Weblog named Urls.  Try and copy one of them, see if your can get it working right.  Start with the Weblog_Home or something along those lines

  • | Post Points: 5
Top 75 Contributor
Posts 301
Points 4,410
andrevs replied on Sat, Jul 26 2008 6:48 AM

This post might also be of help

http://dev.communityserver.com/forums/t/500765.aspx

  • | Post Points: 20
Top 500 Contributor
Posts 60
Points 1,005

I am back to working on this again. That last post did help, thank you. However, I am having trouble testing SiteUrls.config because the changes I make to SiteUrls.config are not always included when I run the application. How is this being cached? I clear out all of my temporary internet files and cookies, etc. and I still have the old version of SiteUrls. After a while, the new version shows up, but it is very frustrating trying to test. Any ideas why I can't always get the latest version of siteurls to show up? I am running in a development environment out of visual studio.

Thanks!

 

  • | Post Points: 35
Top 10 Contributor
Posts 3,558
Points 53,700
TelligentSupportTeam

Changes to siteurls.config (or communityserver.config and those made through _override.config files) do not take effect until you've restarted the web application - this is typically done by recycling the website's application pool, or touching web.config.

Community Server Documentation please rate articles you read

Nintendo Wiikly | My Blog

  • | Post Points: 5
Top 75 Contributor
Posts 301
Points 4,410
andrevs replied on Wed, Aug 6 2008 4:09 AM

Rick, just open SiteUrls and then save it.

  • | Post Points: 20
Top 500 Contributor
Posts 60
Points 1,005

Changing SiteUrls doesn't cause it to be reloaded, that was my whole problem. Also, touching webconfig doesn't make much sense since it is in source control. Each developer would have to check it out, touch it, check it back in each time.

However, I did find out a way to get all of the changes included when running from a Visual Studio development environment. Close the Development Server and let it start up again next time you run. That way all changes to SiteUrls are included.

Thanks for the help.

 

  • | Post Points: 20
Top 10 Contributor
Posts 3,558
Points 53,700
TelligentSupportTeam

Btw, one thing you should be aware of - CS08 doesn't support the VS Development Server.  It works enough to do development on, but you shouldn't do any of your QA using that - you should use IIS instead.

Community Server Documentation please rate articles you read

Nintendo Wiikly | My Blog

  • | Post Points: 20
Top 500 Contributor
Posts 60
Points 1,005

afscrome:

...one thing you should be aware of - CS08 doesn't support the VS Development Server...

Really? I wasn't aware of that. Where can I find the specific incompatibilities?

We are using IIS for QA, but if that works differently than what the developers are using, that might cause some problems. Thanks for the heads up.

 

  • | Post Points: 20
Top 10 Contributor
Posts 3,558
Points 53,700
TelligentSupportTeam

From what I understand, the differences between the two are that some areas don't work full stop in the development server.  It should also be noted that if you're publishing to an IIS7 website under hte itnegrated pipeline, the VS development server runs in classic pipeline so that may also cause a few problems.

If I remember correctly, the main problem is with the cfs file handler not working (this serves media gallery files, site files, avatars etc.), although this may have been fixed in SP1.

Community Server Documentation please rate articles you read

Nintendo Wiikly | My Blog

  • | Post Points: 20
Top 500 Contributor
Posts 60
Points 1,005

afscrome:
the main problem is with the cfs file handler not working (this serves media gallery files, site files, avatars etc.), although this may have been fixed in SP1.

I have noticed that the avatars and the site logos do not display when running through VS. This is still a problem with SP1. I also noticed that the built-in search control would blow up when trying to search in forums, groups, and blogs when running the VS, but we wrote our own search control anyhow.

 

  • | Post Points: 5
Page 1 of 1 (11 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com