localhost redirection

localhost redirection

am 28.12.2007 10:07:25 von spellublind

Hello All,

I installed IIS for my home computer and everything is okay. I got to
know that http://computername redirects to http://localhost. But i
was just wandering if let's say instead of typing http://localhost can
i type http://projectname and get it to redirect it to http://localhost.
I'm on a WINXP SP2 PRO on IIS 5.1

Regards,
SpElLuBlInD

Re: localhost redirection

am 28.12.2007 12:17:05 von Anthony Jones

wrote in message
news:28dcc22e-385a-4dd4-9fb0-73b148c6e39c@e23g2000prf.google groups.com...
> Hello All,
>
> I installed IIS for my home computer and everything is okay. I got to
> know that http://computername redirects to http://localhost. But i
> was just wandering if let's say instead of typing http://localhost can
> i type http://projectname and get it to redirect it to http://localhost.
> I'm on a WINXP SP2 PRO on IIS 5.1
>

Open in notepad the file:-

\windows\system32\drivers\etc\HOSTS

(note no file extension)

add this line:-

127.0.0.1 projectname

If you are developing for uploading to a public address then you could do
something like this also:-

127.0.0.1 projectname.domain.com

This is preferable for testing purposes

--
Anthony Jones - MVP ASP/ASP.NET

Re: localhost redirection

am 28.12.2007 15:59:24 von spellublind

On Dec 28, 4:17=A0pm, "Anthony Jones" wrote:
> wrote in message
>
> news:28dcc22e-385a-4dd4-9fb0-73b148c6e39c@e23g2000prf.google groups.com...
>
> > Hello All,
>
> > I installed IIS for my home computer and everything is okay. I got to
> > know thathttp://computernameredirects tohttp://localhost. But i
> > was just wandering if let's say instead of typinghttp://localhostcan
> > i typehttp://projectnameand get it to redirect it tohttp://localhost.
> > I'm on a =A0WINXP SP2 PRO on IIS 5.1
>
> Open in notepad the file:-
>
> \windows\system32\drivers\etc\HOSTS
>
> (note no file extension)
>
> add this line:-
>
> 127.0.0.1 =A0 =A0projectname
>
> If you are developing for uploading to a public address then you could do
> something like this also:-
>
> 127.0.0.1 =A0 =A0projectname.domain.com
>
> This is preferable for testing purposes
>
> --
> Anthony Jones - MVP ASP/ASP.NET

Wow!!!
Thanks a lot Anthony, that was terrific.