Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Domain URL in server variables? Same as Path_Info?

Thread Tools

Domain URL in server variables? Same as Path_Info?

Posts: n/a
Could someone tell me if there is any reliable server variable that returns
the Domain Name + Path in ASP?

I have tried:


Both Return:


I want to get the following back:


The reason I ask is having to build string manipulation functions to strip
out relevant Parent folder and append www. prefix and trailing sub folders:

eg: "www." & ParentFolder & ".com" & SubPath

Is there an easier way to translate to handle server variables in my
applications rather than adding extra chunks of functions or having to build
a custom .COM or go to .NET?

There has to be a simpler way....?


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Making a server on one domain the domain controller of a new domain Limited Wisdom MCSA 7 09-13-2006 02:18 AM