ASP.net (C#) and IIS

  • Thread starter Thread starter Maziar Aflatoun
  • Start date Start date
I don't know if something is possible. If it would be possible in a nice way
it would be also a help for me.

You could create (by your webpage) a subfolder (each time a user is
registering) and place there a file
that redirects only to the main default.aspx and passes some arguments...

But i guess that's not the best way :( and it's not very nice.

Cheers
Christian
 
The question makes no sense. In the URLs below, "user1" is a virtual
directory, not an "alias". Virtual directories are mappings to physical
directories on the server. If they are "aliases", they are aliases of
directories, not of files or of users.

"Default.aspx", meanwhile, is a file. Files cannot be mapped. What I have
done occasionally is create a directory that appears like a filename. For
example:

http://www.mydomain.com/default.aspx/default.aspx

... in which case, a directory called "default.aspx" contains a file,
"default.aspx". In this case, you can map "user1", et al, to the same
directory as that which hosts "/default.aspx/..."

However, there is no advantage to having a subdirectory named
"default.aspx".

Of course, you can also try mapping the virtual directories "user1",
"user2", et al, to the same physical path as the root directory of the
virtual server.

Jon
 
Maziar Aflatoun said:
Well, maybe the question doesn't make sense but the idea does. I'm from a
Unix (Apache) background and well in Apache you can configure your server to
instead of passing parameters like

http://www.zend.com/myscript.php?myvalue=Hello

to a more search engine friendly way

http://www.zend.com/myscript.php/myvalue/Hello (also note that myvalue here
is not a virtual directory)

Oh. I've frequently pondered on that need, actually, even just a few days
ago.

No, can't do that in IIS. What you can do if you have the patience is build
out a basic HTTP server using the .NET framework (just a lego system, almost
all the classes are there), then handle all GET requests manually.

Jon
 
Back
Top