|
|
 |
RE: FN-FORUM: ISAPI Rewrite issues
date posted 11th September 2007 13:54
Alternatively if you want something more readable then you could write a
function to conver everything except for compatable charictors to a dash for
example.
Function cleanURL(str)
Set regEx = New RegExp
regEx.Pattern = "[^0-9a-zA-Z-_]"
regEx.IgnoreCase = True
regEx.Global = True
cleanURL = regEx.Replace(str, "-")
end function
Regards
Sam Morgan
WiredEyes Media / ServWise Advanced Hosting
tel (Uk): +44 (0)20 7100 2178
tel (Italy): +39 070 773 6543
web : www.wiredeyes.com / www.servwise.com
----
umop ap!sdn w,! aw dlaH
----
==========================
Summer Sale 50% off all ServWise
hosting, use coupon code : HALFPRICE
==========================
> -----Original Message-----
> From: [EMAIL REMOVED] [EMAIL REMOVED] On Behalf Of Paul
> Cooper
> Sent: Tuesday, September 11, 2007 2:59 PM
> To: FN-FORUM / [EMAIL REMOVED]
> Subject: FN-FORUM: ISAPI Rewrite issues
>
>
> I'm using an ASP ISAPI rewrite component which I think does what most
> of you would know as mod rewrite. I've come across issues when using
> # (hash) and / (forward slash) characters.
>
> For example I get an error when you click on the first 2 links on this
> page:
>
> http://www.perpetual-solutions.com.servwise.com/training-
> courses/133,3/TCP/IP,-IP,-IPv6-Training-Courses.htm
>
> For the # sign I just did a 'replace with nothing' to remove it. This
> isn't ideal as I want people to be able to search for C# courses and
> have my pages indexed as such. I'm kind of assuming there's no way
> round it (browsers treat hashes with bookmarks and slashes with folder
> paths).
>
> But I thought I'd check just in case. Am I doing the right thing?
> Whilst I'm at it, are there any other characters that would cause me
> problems?
>
> TIA
> Paul
>
> --
> Freelancers, contractors earn more with Prosperity4
> Call 0870 870 4414 or visit www.prosperity4.com
> and benefit from Inland Revenue approved expenses today.
>
> To advertise here: http://www.freelancers.net/advertising.html
>
> |
 |
|