views:

58

answers:

2

PAls,

I have lot of URLs with + in it. ie., (http://domain.com/abcd+ac.aspx, etc)

Im planning to move that hosting to Godaddy, but they firmly said they wont support + in the URL.

Reply from them :

Unfortunately, our servers will not recognize special characters such as the "+" character and is not something that we are willing to change. We apologize for the inconvenience.

So using an URL Rewriting module will work ?? Please advise. Thanks in advance.

+1  A: 

ISP's are a dime a dozen. Find one that will support the features you want.

I don't think URL rewriting will work, unless the ISP actually allows the characters into your application.

Robert Harvey
not so much for asp.net hosting though(especially if you must be on a Windows platform, as in not Mono)
Earlz
A: 

I doubt GoDaddy is the only hosting company that will have a problem with + characters in filenames. (Side note: I can't quite decide whether "foo+bar.aspx" refers to a file called "foo+bar.aspx" or one called "foo bar.aspx", since + is shorthand URL-encoding for space. Tomcat didn't interpret it that way, I'd have to read the rules again to figure it out...)

I'd revise the program so it doesn't use URLs like that, replace the + with _ or some such. A bunch of renames plus some global search-and-replace ops should do it.

To support old bookmarks, it'll depend on where GoDaddy doesn't support the +. If they let the request through to your server, then yes, a rewriting rule should let you accept foo+bar.aspx and have it issue a redirect to foo_bar.aspx. There's a rewriting module for IIS 7; syntax and such are discussed in this article (I have no idea how good it is). Claims to use JavaScript-style regexes, which makes life easy for us webbies.

T.J. Crowder