Site Access

S

SAB

Hi,

I am using Windows 2000 server and set number of websites and ftp sites and
all seems working just fine. One site had an asp codes like the one below:

const MYSITE="http://www.domain.com"

The strange things is that it suppose to be like the shown above, but the
results comes as an error page. I change it to "http://domain.com" it work
without error page, but not exactly the results should be, then I added a
back slash at the end like "http://domain.com/" and works just fine and got
exact results it should be. The site configured in the IIS to work as with
and without www. The site works just fine in both www and without in the
browser but as I said a certain results for the script that included that
code shown above gave that results. Any idea, can you help in guiding me to
solve this issue.

Thank you very much in advance.

Best Regards
SAB
 
J

Jeff Cochran

I am using Windows 2000 server and set number of websites and ftp sites and
all seems working just fine. One site had an asp codes like the one below:

const MYSITE="http://www.domain.com"

The strange things is that it suppose to be like the shown above, but the
results comes as an error page. I change it to "http://domain.com" it work
without error page, but not exactly the results should be, then I added a
back slash at the end like "http://domain.com/" and works just fine and got
exact results it should be. The site configured in the IIS to work as with
and without www. The site works just fine in both www and without in the
browser but as I said a certain results for the script that included that
code shown above gave that results. Any idea, can you help in guiding me to
solve this issue.

Probably a coding issue. You assign MYSITE to a variable, but what
that is willd epend son how you use it. For example:

const MYSITE="http://www.domain.com"

MyPath1 = MYSITE & "/folder/filename.asp"
MyPath2 = MYSITE & "folder/filename.asp"

Response.Write Mypath1 & "<br>"
Response.Write Mypath2 & "<br>"

One is valid, one isn't.

Jeff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
474,159
Messages
2,570,879
Members
47,414
Latest member
GayleWedel

Latest Threads

Top