|
|
| Author |
Messages |
|
filemon Registered Users
 Nuke Newbie Posts:4

 |
| 4/23/2007 6:51 AM |
|
Hi, first of all, congratulations for this project.
I would like to know to to implement the Ventrian URL Rewriter in order to produce and parse URLs without extension.
Note that the targetted apps are located in a dedicated server, not a shared one. This means that I can configure IIS the way I want.
Since IIS requires an extension in order top map it to an internal engine (asp, or asp.net,...), how can I do for files without extension.
I'm a seo-specialized guy and simply cannot use DNN human URL with .aspx.
I need "web2.0ed" URLs like
http://www.mysite.com/user/login
http://www.mysite.com/cars/ferrari-f430
http://www.mysite.com/forum/how-to-dismantle-an-atomic-bomb
...
Any idea ?
Thank again.
Keep up the good job Scott!
filemon. |
|
|
|
|
Scott McCulloch Administrators
 Nuke Master Posts:11517


 |
| 4/23/2007 10:18 PM |
|
It's been built to work with aspx pages, what you need to do is difficult with the way IIS is configured. But it looks like you already knew that.
I don't see why it wouldn't work, although I haven't tested it and there maybe some hard coded references to look for .aspx paths in the code. It certainly is possible and i've done it before with the login+ register pages using the url config file. |
|
Scott McCulloch Site Administrator |
|
|
Rabidmax Registered Users
 Nuke Active Member Posts:34

 |
| 5/22/2007 4:47 PM |
|
We've been doing some research into this kind of thing on my current project.
We're currently looking at using the free Ionic ISAPI rewrite tool (http://cheeso.members.winisp.net/IIRF.aspx) to get some of this functionality.
A rule such as: RewriteRule (/[\w\-/]*)/?\z $1/default.aspx [I,L]
Will take any url consisting of the letters a-zA-Z0-9(underscore)(hyphen)(forwardslash) and optionally ending in a /, and tack default.aspx onto the end of it, thus passing it directly into the correct IIS engine. This would happily deal with all the URLS you specified above... sort of.
Obviously this is completely unusable in truth, for one thing it totally dismisses anything with querystring parameters.
Ideally, we could have a set of rules that can *somehow* detect that the given URI is needing to go into ASP.Net. The issues revolve around things that mostly wouldn't need to go into it, like anything ending in .css, .js, .bmp, .jpg, .*almost everything*.
Maybe a rule along the lines of (/[^\.\?]*)/?(\?.*)? maybe mapping to: $1/default.aspx$2
I don't know, I'm still rather new to regular expressions, and I haven't tried this at all. Basically, I -think- that it's saying (or maybe I mean it to say): 1. This rule is for a URI which is of the form 'starts with a /, has some number of things that isn't a . or a ?, might have a /, and might have querystring parameters. 2. If we find this rule, attach default.aspx to the 'path' section, and tack the querystring (if there was any) onto the end. 3. Profit.
Phew. Does that cover most everything? I dunno, maybe... probably not, or someone would have come up with it already :)
The main issue with it would be that 'paths' with '.'s anywhere in it won't go through, though technically in DNN the tabpath has these stripped out already anyway (see my previous post about hyphens in the tabpath), so it might be a non-issue, shrug. Perhaps the biggest issue is the friendly url putting the querystring into the path part of the url?
Well, maybe that will give someone some ideas of how we might be able to accomplish this. Hopefully, if someone does try it and find it works or finds a way to make it work, they'll let us know too!
Btw, where can I actually download this Human Friendly URL thing? I've been looking on and off for a couple of days now, and it seems quite well hidden...
Ouch, my head hurts. Max |
|
|
|
|
Scott McCulloch Administrators
 Nuke Master Posts:11517


 |
| 5/23/2007 6:57 AM |
|
Max,
You can find it here |
|
Scott McCulloch Site Administrator |
|
|
|
| You are not authorized to post a reply. |
|
|
|
ActiveForums 3.7
|
|