Redirect url from non standard port to standard port
Redirect url from non standard port to standard port
am 03.01.2008 22:15:03 von jlegacy
I've done a little searching, but haven't found something that will do what
I'd like, or even know if I can do what I'd like.
I have been running IIS 6 on port 8080, users have been accessing the site
without any problems. I would like to run the server on the standard port 80
now. The problem I have is that there are links out to the site with the
port 8080 as part of the address/link. What I would like to do is have IIS
or another app intercept the url, strip the port 8080 info, and spit back the
url. For example, the user enters the following url:
http://www.mywebsite.com:8080/directory/file.htm
IIS or whatever strips the :8080, and spits back the following page/url to
the user
http://www.mywebsite.com/directory/file.htm
Any suggestions or recommendations on how I might go about doing this?
Thanks in advance
Josh
Re: Redirect url from non standard port to standard port
am 03.01.2008 22:33:42 von Kristofer Gafvert
Hi,
My understanding of your question is that you want to show the new URL to
the user so they start using that URL instead. You can do this in IIS by
setting up a redirection.
Create two websites, one for port 80 and one for 8080. For the 8080 website,
set up a redirection with the following steps:
- In IIS Manager, right click the website and click Properties.
- Click on the Home Directory tab
- Select "A redirection to a URL" and in the "Redirect to" textbox write:
http://www.newdomain.com$V$Q
- Check the boxes "The exact URL entered above" and "A permanent redirection
for this resource"
More information can be found in the following article, see section
"Redirect from the old domain name to the new domain name":
http://www.gafvert.info/iis/article/questions_0737.htm
Hope this helps.
--
Regards,
Kristofer Gafvert
http://www.gafvert.info/iis/ - IIS Related Info
"Josh Colombo" skrev i meddelandet
news:CD863171-429D-43EF-89AF-ED497CCC7270@microsoft.com...
> I've done a little searching, but haven't found something that will do
> what
> I'd like, or even know if I can do what I'd like.
>
> I have been running IIS 6 on port 8080, users have been accessing the site
> without any problems. I would like to run the server on the standard port
> 80
> now. The problem I have is that there are links out to the site with the
> port 8080 as part of the address/link. What I would like to do is have
> IIS
> or another app intercept the url, strip the port 8080 info, and spit back
> the
> url. For example, the user enters the following url:
> http://www.mywebsite.com:8080/directory/file.htm
>
> IIS or whatever strips the :8080, and spits back the following page/url to
> the user
> http://www.mywebsite.com/directory/file.htm
>
> Any suggestions or recommendations on how I might go about doing this?
>
> Thanks in advance
> Josh
Re: Redirect url from non standard port to standard port
am 04.01.2008 00:52:02 von jlegacy
Thanks Kristofer,
I believe that will work. I've made the changes on the server, and will see
if I run into any issues.
One quick question, some of the links have sub-domains, is there a way to
parse the sub-domains and pass that on to the new website as well?
Thanks!
Josh
"Kristofer Gafvert" wrote:
> Hi,
>
> My understanding of your question is that you want to show the new URL to
> the user so they start using that URL instead. You can do this in IIS by
> setting up a redirection.
>
> Create two websites, one for port 80 and one for 8080. For the 8080 website,
> set up a redirection with the following steps:
>
> - In IIS Manager, right click the website and click Properties.
> - Click on the Home Directory tab
> - Select "A redirection to a URL" and in the "Redirect to" textbox write:
> http://www.newdomain.com$V$Q
> - Check the boxes "The exact URL entered above" and "A permanent redirection
> for this resource"
>
> More information can be found in the following article, see section
> "Redirect from the old domain name to the new domain name":
> http://www.gafvert.info/iis/article/questions_0737.htm
>
> Hope this helps.
>
> --
> Regards,
> Kristofer Gafvert
> http://www.gafvert.info/iis/ - IIS Related Info
>
>
> "Josh Colombo" skrev i meddelandet
> news:CD863171-429D-43EF-89AF-ED497CCC7270@microsoft.com...
> > I've done a little searching, but haven't found something that will do
> > what
> > I'd like, or even know if I can do what I'd like.
> >
> > I have been running IIS 6 on port 8080, users have been accessing the site
> > without any problems. I would like to run the server on the standard port
> > 80
> > now. The problem I have is that there are links out to the site with the
> > port 8080 as part of the address/link. What I would like to do is have
> > IIS
> > or another app intercept the url, strip the port 8080 info, and spit back
> > the
> > url. For example, the user enters the following url:
> > http://www.mywebsite.com:8080/directory/file.htm
> >
> > IIS or whatever strips the :8080, and spits back the following page/url to
> > the user
> > http://www.mywebsite.com/directory/file.htm
> >
> > Any suggestions or recommendations on how I might go about doing this?
> >
> > Thanks in advance
> > Josh
>
>
Re: Redirect url from non standard port to standard port
am 05.01.2008 17:12:15 von Kristofer Gafvert
Hi,
I do not understand your question completely. Do you want to redirect
subdomain.mywebsite.com:8080 to www.mywebsite.com? Or do you want to
redirect it to subdomain.mywebsite.com?
How many subdomains are we talking about?
You cannot parse the subdomain part from the domain name by using IIS
configuration. But there may be simple ways to do this, depending on what
you want to do, which is not clear. If you have a large number of subdomains
and a complex setup it may be easier to use a tool such as Isape-rewrite:
http://www.isapirewrite.com/
--
Regards,
Kristofer Gafvert
http://www.gafvert.info/iis/ - IIS Related Info
"Josh Colombo" skrev i meddelandet
news:97108B2F-5E58-471E-86CB-66FE092C3287@microsoft.com...
> Thanks Kristofer,
>
> I believe that will work. I've made the changes on the server, and will
> see
> if I run into any issues.
>
> One quick question, some of the links have sub-domains, is there a way to
> parse the sub-domains and pass that on to the new website as well?
>
> Thanks!
> Josh
>
> "Kristofer Gafvert" wrote:
>
>> Hi,
>>
>> My understanding of your question is that you want to show the new URL to
>> the user so they start using that URL instead. You can do this in IIS by
>> setting up a redirection.
>>
>> Create two websites, one for port 80 and one for 8080. For the 8080
>> website,
>> set up a redirection with the following steps:
>>
>> - In IIS Manager, right click the website and click Properties.
>> - Click on the Home Directory tab
>> - Select "A redirection to a URL" and in the "Redirect to" textbox write:
>> http://www.newdomain.com$V$Q
>> - Check the boxes "The exact URL entered above" and "A permanent
>> redirection
>> for this resource"
>>
>> More information can be found in the following article, see section
>> "Redirect from the old domain name to the new domain name":
>> http://www.gafvert.info/iis/article/questions_0737.htm
>>
>> Hope this helps.
>>
>> --
>> Regards,
>> Kristofer Gafvert
>> http://www.gafvert.info/iis/ - IIS Related Info
>>
>>
>> "Josh Colombo" skrev i meddelandet
>> news:CD863171-429D-43EF-89AF-ED497CCC7270@microsoft.com...
>> > I've done a little searching, but haven't found something that will do
>> > what
>> > I'd like, or even know if I can do what I'd like.
>> >
>> > I have been running IIS 6 on port 8080, users have been accessing the
>> > site
>> > without any problems. I would like to run the server on the standard
>> > port
>> > 80
>> > now. The problem I have is that there are links out to the site with
>> > the
>> > port 8080 as part of the address/link. What I would like to do is have
>> > IIS
>> > or another app intercept the url, strip the port 8080 info, and spit
>> > back
>> > the
>> > url. For example, the user enters the following url:
>> > http://www.mywebsite.com:8080/directory/file.htm
>> >
>> > IIS or whatever strips the :8080, and spits back the following page/url
>> > to
>> > the user
>> > http://www.mywebsite.com/directory/file.htm
>> >
>> > Any suggestions or recommendations on how I might go about doing this?
>> >
>> > Thanks in advance
>> > Josh
>>
>>
Re: Redirect url from non standard port to standard port
am 05.01.2008 17:45:00 von jlegacy
I would like to redirect subdomain.mywebsite.com:8080 to
subdomain.mywebsite.com. I have only 2 or 3 subdomains, and it'd probably
just be easiest to just let everything redirect to a single subdomain by
including it in the IIS redirection http://www.subdomain.mywebsite.com$V$Q.
Thanks for all your help Kristofer.
Josh
"Kristofer Gafvert" wrote:
> Hi,
>
> I do not understand your question completely. Do you want to redirect
> subdomain.mywebsite.com:8080 to www.mywebsite.com? Or do you want to
> redirect it to subdomain.mywebsite.com?
>
> How many subdomains are we talking about?
>
> You cannot parse the subdomain part from the domain name by using IIS
> configuration. But there may be simple ways to do this, depending on what
> you want to do, which is not clear. If you have a large number of subdomains
> and a complex setup it may be easier to use a tool such as Isape-rewrite:
>
> http://www.isapirewrite.com/
>
> --
> Regards,
> Kristofer Gafvert
> http://www.gafvert.info/iis/ - IIS Related Info
>
>
> "Josh Colombo" skrev i meddelandet
> news:97108B2F-5E58-471E-86CB-66FE092C3287@microsoft.com...
> > Thanks Kristofer,
> >
> > I believe that will work. I've made the changes on the server, and will
> > see
> > if I run into any issues.
> >
> > One quick question, some of the links have sub-domains, is there a way to
> > parse the sub-domains and pass that on to the new website as well?
> >
> > Thanks!
> > Josh
> >
> > "Kristofer Gafvert" wrote:
> >
> >> Hi,
> >>
> >> My understanding of your question is that you want to show the new URL to
> >> the user so they start using that URL instead. You can do this in IIS by
> >> setting up a redirection.
> >>
> >> Create two websites, one for port 80 and one for 8080. For the 8080
> >> website,
> >> set up a redirection with the following steps:
> >>
> >> - In IIS Manager, right click the website and click Properties.
> >> - Click on the Home Directory tab
> >> - Select "A redirection to a URL" and in the "Redirect to" textbox write:
> >> http://www.newdomain.com$V$Q
> >> - Check the boxes "The exact URL entered above" and "A permanent
> >> redirection
> >> for this resource"
> >>
> >> More information can be found in the following article, see section
> >> "Redirect from the old domain name to the new domain name":
> >> http://www.gafvert.info/iis/article/questions_0737.htm
> >>
> >> Hope this helps.
> >>
> >> --
> >> Regards,
> >> Kristofer Gafvert
> >> http://www.gafvert.info/iis/ - IIS Related Info
> >>
> >>
> >> "Josh Colombo" skrev i meddelandet
> >> news:CD863171-429D-43EF-89AF-ED497CCC7270@microsoft.com...
> >> > I've done a little searching, but haven't found something that will do
> >> > what
> >> > I'd like, or even know if I can do what I'd like.
> >> >
> >> > I have been running IIS 6 on port 8080, users have been accessing the
> >> > site
> >> > without any problems. I would like to run the server on the standard
> >> > port
> >> > 80
> >> > now. The problem I have is that there are links out to the site with
> >> > the
> >> > port 8080 as part of the address/link. What I would like to do is have
> >> > IIS
> >> > or another app intercept the url, strip the port 8080 info, and spit
> >> > back
> >> > the
> >> > url. For example, the user enters the following url:
> >> > http://www.mywebsite.com:8080/directory/file.htm
> >> >
> >> > IIS or whatever strips the :8080, and spits back the following page/url
> >> > to
> >> > the user
> >> > http://www.mywebsite.com/directory/file.htm
> >> >
> >> > Any suggestions or recommendations on how I might go about doing this?
> >> >
> >> > Thanks in advance
> >> > Josh
> >>
> >>
>
>
Re: Redirect url from non standard port to standard port
am 05.01.2008 19:06:49 von Kristofer Gafvert
You can use the steps i have provided earlier. I don't know of any
configuration in IIS you can use to make only one configuration that works
for all domains, as far as i know IIS 6 configuration does not have such
advanced features. Atleast not that i can remember right now.
I hope you get this working (and sorry for my late reply, i had a few other
things to do).
Cheers and good luck with your website!
--
Regards,
Kristofer Gafvert
http://www.gafvert.info/iis/ - IIS Related Info
"Josh Colombo" skrev i meddelandet
news:D71A2BF6-4AF4-483D-8875-B98A7B61C102@microsoft.com...
>I would like to redirect subdomain.mywebsite.com:8080 to
> subdomain.mywebsite.com. I have only 2 or 3 subdomains, and it'd probably
> just be easiest to just let everything redirect to a single subdomain by
> including it in the IIS redirection
> http://www.subdomain.mywebsite.com$V$Q.
>
> Thanks for all your help Kristofer.
>
> Josh
>
>
> "Kristofer Gafvert" wrote:
>
>> Hi,
>>
>> I do not understand your question completely. Do you want to redirect
>> subdomain.mywebsite.com:8080 to www.mywebsite.com? Or do you want to
>> redirect it to subdomain.mywebsite.com?
>>
>> How many subdomains are we talking about?
>>
>> You cannot parse the subdomain part from the domain name by using IIS
>> configuration. But there may be simple ways to do this, depending on what
>> you want to do, which is not clear. If you have a large number of
>> subdomains
>> and a complex setup it may be easier to use a tool such as Isape-rewrite:
>>
>> http://www.isapirewrite.com/
>>
>> --
>> Regards,
>> Kristofer Gafvert
>> http://www.gafvert.info/iis/ - IIS Related Info
>>
>>
>> "Josh Colombo" skrev i meddelandet
>> news:97108B2F-5E58-471E-86CB-66FE092C3287@microsoft.com...
>> > Thanks Kristofer,
>> >
>> > I believe that will work. I've made the changes on the server, and
>> > will
>> > see
>> > if I run into any issues.
>> >
>> > One quick question, some of the links have sub-domains, is there a way
>> > to
>> > parse the sub-domains and pass that on to the new website as well?
>> >
>> > Thanks!
>> > Josh
>> >
>> > "Kristofer Gafvert" wrote:
>> >
>> >> Hi,
>> >>
>> >> My understanding of your question is that you want to show the new URL
>> >> to
>> >> the user so they start using that URL instead. You can do this in IIS
>> >> by
>> >> setting up a redirection.
>> >>
>> >> Create two websites, one for port 80 and one for 8080. For the 8080
>> >> website,
>> >> set up a redirection with the following steps:
>> >>
>> >> - In IIS Manager, right click the website and click Properties.
>> >> - Click on the Home Directory tab
>> >> - Select "A redirection to a URL" and in the "Redirect to" textbox
>> >> write:
>> >> http://www.newdomain.com$V$Q
>> >> - Check the boxes "The exact URL entered above" and "A permanent
>> >> redirection
>> >> for this resource"
>> >>
>> >> More information can be found in the following article, see section
>> >> "Redirect from the old domain name to the new domain name":
>> >> http://www.gafvert.info/iis/article/questions_0737.htm
>> >>
>> >> Hope this helps.
>> >>
>> >> --
>> >> Regards,
>> >> Kristofer Gafvert
>> >> http://www.gafvert.info/iis/ - IIS Related Info
>> >>
>> >>
>> >> "Josh Colombo" skrev i
>> >> meddelandet
>> >> news:CD863171-429D-43EF-89AF-ED497CCC7270@microsoft.com...
>> >> > I've done a little searching, but haven't found something that will
>> >> > do
>> >> > what
>> >> > I'd like, or even know if I can do what I'd like.
>> >> >
>> >> > I have been running IIS 6 on port 8080, users have been accessing
>> >> > the
>> >> > site
>> >> > without any problems. I would like to run the server on the
>> >> > standard
>> >> > port
>> >> > 80
>> >> > now. The problem I have is that there are links out to the site
>> >> > with
>> >> > the
>> >> > port 8080 as part of the address/link. What I would like to do is
>> >> > have
>> >> > IIS
>> >> > or another app intercept the url, strip the port 8080 info, and spit
>> >> > back
>> >> > the
>> >> > url. For example, the user enters the following url:
>> >> > http://www.mywebsite.com:8080/directory/file.htm
>> >> >
>> >> > IIS or whatever strips the :8080, and spits back the following
>> >> > page/url
>> >> > to
>> >> > the user
>> >> > http://www.mywebsite.com/directory/file.htm
>> >> >
>> >> > Any suggestions or recommendations on how I might go about doing
>> >> > this?
>> >> >
>> >> > Thanks in advance
>> >> > Josh
>> >>
>> >>
>>
>>