Register   Login
     
  Latest Posts  
PortalID Token in content
by emaynard on 10/16/2008 3:55 AM
RE: Sites using Private Messages
by bennyj on 10/16/2008 12:22 AM
ENH/??: Alt/Title for [ICON] Image Tag
by brit77 on 10/16/2008 12:11 AM
RE: isonline in PA
by bennyj on 10/16/2008 12:05 AM
RE: Hide Publishing Details
by atguser on 10/15/2008 10:00 PM
RE: Property Agent Latest Module Carousel Example
by tmaler on 10/15/2008 8:17 PM
RE: SQL Injection Issue
by sueboothby on 10/15/2008 7:46 PM
Page for a category
by rmartin77 on 10/15/2008 6:37 PM
RE: LOCALE TAG
by rmartin77 on 10/15/2008 6:25 PM
RE: ENH: NA becomes the Article Manager and LA is the display module
by pspeth on 10/15/2008 5:57 PM
  Forums  
Subject: The opposite approach to what a friendly URL should do
Prev Next
You are not authorized to post a reply.

Author Messages
Raldo LootsUser is Offline
Registered Users

Posts:10

5/10/2007 1:39 PM  

I hope I can find some info on the following BIG challenge, as I don't think it is simple, if at all possible.

We have developed a social networking site on DNN and have about 2000 members now. We now wish to make profiles publicly accessible, in the format www.website.com/firstnamelastname, i.e.

www.website.com/bradpitt

This would seem to be the ideal, but if not possible, can anyone make any suggestions on alternatives, i.e.:

www.website.com/bradpitt.aspx

or

www.website.com/profiles/bradpitt ot www.website.com/profiles/bradpitt.aspx ?

Any help would be appreciated, as I have not found info on this kind of requirement in DNN yet

 

 

Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12051


5/11/2007 9:31 AM  
This is possible through extending the provider and changing IIS to pass everything through to the ASPNET proces.

The reason I use .aspx at the moment, is because only valid .net extensions get passed to the .net runtime.

Scott McCulloch
Site Administrator
Bruce OnderUser is Offline
Registered Users
Nuke Newbie
Nuke Newbie
Posts:7

5/29/2007 10:15 PM  

If each user is going to have their own tab/page to put content on, and if you don't need subfolders to show in the URL, then Inventua's HrefExchanger will work great for you.  You can tell it to remove spaces from the tab name or replace spaces with some character.

HTH

--Bruce

Danny TamUser is Offline
Registered Users
Nuke Master
Nuke Master
Posts:242


5/29/2007 11:36 PM  
I'm really excited to see the short term potential for Friendly URL's in DotNetNuke. I'm no programmer and really wouldn't be able to contribute, but the day that something such as News Articles is fully compatible with human friendly url's (e.g., http://www.sitename.com/pagename), DotNetNuke will have reached a new milestone in the open-source CMS market.

As I recall from responses from a year back, it was not possible. I don't know to the degree of it today, but would most certainly hope some light has been shed on the possibility of it happening.
Lance LongUser is Offline
Gold Membership
Nuke Wiz
Nuke Wiz
Posts:131


7/19/2007 11:37 AM  
Bonder: I would be careful with HrefExchanger. It does make better URLs but it has to run after the page is created and therefor ads overhead to the page creation process.

Better would be to use ISAPI rewrite to redirect any requests with .html or no extension to .aspx. I would limit this to a subfolder if you have a lot of other pages on the site like a forum.



Jason KoskimakiUser is Offline
Registered Users
Nuke Wiz
Nuke Wiz
Posts:194

7/24/2007 7:08 PM  

Do you mean like this. :)

http://www.yapclub.com/jasonkoskimaki/

I hardcoded Scott's url provider so that this would work along with many other pretty urls. But I didn't know how to do IIS redirects so I created a folder named jasonkoskimaki and a custom default.aspx in it.

However, I also have the rest of my users setup to lookup on userid as

website.com/23211.aspx

I posted some solutions on doing this in this forum awhile ago and from all my customizations my code is too forked now for me to post the changes to add.

Note when doing this you need to be careful as you can mess up your search engine results if you don't rewrite correctly. I don't quite understand how it works but there is Request.URL.tostring and Request.RawURL and other url properties and I think search engines can detect if you are rewriting incorrectly.

Jason


Social Networking Site for Young Professionals - My DNN Site w/ lots of Ventrian Modules
Jason KoskimakiUser is Offline
Registered Users
Nuke Wiz
Nuke Wiz
Posts:194

7/24/2007 7:08 PM  

Do you mean like this. :)

http://www.yapclub.com/jasonkoskimaki/

I hardcoded Scott's url provider so that this would work along with many other pretty urls. But I didn't know how to do IIS redirects so I created a folder named jasonkoskimaki and a custom default.aspx in it.

However, I also have the rest of my users setup to lookup on userid as

website.com/23211.aspx

I posted some solutions on doing this in this forum awhile ago and from all my customizations my code is too forked now for me to post the changes to add.

Note when doing this you need to be careful as you can mess up your search engine results if you don't rewrite correctly. I don't quite understand how it works but there is Request.URL.tostring and Request.RawURL and other url properties and I think search engines can detect if you are rewriting incorrectly.

Jason


Social Networking Site for Young Professionals - My DNN Site w/ lots of Ventrian Modules
pbryanUser is Offline
Registered Users
Nuke Super Newbie
Nuke Super Newbie
Posts:12

7/25/2007 12:20 AM  
Have a look at the Ionics ISAPI rewirter http://www.codeplex.com/IIRF Its free and open source.

I was able to do away with the .aspx extension on my site using it.
Ldc0618User is Offline
Registered Users
Nuke Newbie
Nuke Newbie
Posts:5

7/25/2008 12:16 PM  

I am trying to do the exact same thing in DNN social networking site. Has anyone come up with a complete solution for this?

Thanks!!!

You are not authorized to post a reply.
Forums > Projects > Friendly Urls > The opposite approach to what a friendly URL should do



ActiveForums 3.7