Welcome to MobyThreads.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Newbie: help with redirection script

 
   Web Hosting and Web Master Forums (Home) -> IIS RSS
Related Topics:
Newbie to IIS-Needs Help - I recently set up IIS on one of my machines at home so that I could some files to the outside world. I think I've figured out how to make the service run how I want it to (display a directory of the files I've stored). I can access it from..

newbie to iis - I that IIS will cache files in memory, however I need to find out if there is a way to determine if a file is in the cache or not. I have a web based on Windowns 2000 server with SP 4 that when I attemtp to update..

Newbie to IIS 6 - I have just upgraded my setup to Using host headers for a couple of websites on one IP. No probs. All is well. I have heard that IIS6 includes the "URL that I was using for my IIS5.1 setup. Where do I go to..

IIS 5.1 Newbie - Is it possible to use iis 5.1 to make my computer act as a http or ftp server for use over the internet, not an intranet?

Newbie needs help... - Hello all. I am new to IIS. i have clean installed XP PRO and just cannot grasp the whole IIS thing. Is there a website where i can literally be walked thru setting up my web server? I have my web site name parked with a service and just..
Next:  IIS log contains entries with previous days time  
Author Message
steve

External


Since: Dec 24, 2006
Posts: 1



(Msg. 1) Posted: Sun Dec 24, 2006 4:17 am
Post subject: Newbie: help with redirection script
Archived from groups: microsoft>public>inetserver>iis (more info?)

Hi,
I decided to completely move my site (currently on IIS) to a new server
(Apache) and a new domain (and structure). i.e. complete change except the
majority of contents.

I want to save my most important incoming links and redirect them to the new
appropriate page as they bring some traffic and have been posted on forums
and referenced by other sites.
e.g. oldsite.com/myblog/post23.htm ==>
newsite.com/content/blog/blog.php?item=234

What would be the best compromise?
I dont care about loosing some *specific* links and just redirect them to
the index.html of the new site. But i would like to keep a few specific
ones.

I am thinking to create an IIS script for the general redirection AND add
the "specific" redirections as well.
I am a complete newbie on IIS (not much better on Apache!...). Can you guide
me with an example or at least a place to read? I posted my question in a
few forums with no response.
The fact that i am moving to Apache should not matter, i just need info on
the redirection.

Any help/links would be greately appreciated.

 >> Stay informed about: Newbie: help with redirection script 
Back to top
Login to vote
David Wang

External


Since: Dec 22, 2006
Posts: 560



(Msg. 2) Posted: Sun Dec 24, 2006 11:56 pm
Post subject: Re: Newbie: help with redirection script [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Since you are moving to Apache, it seems that you should be more
interested in knowing how to do redirections on Apache.

i.e. Change DNS record of oldsite.com to point to the same IP as
newsite.com, then handle the redirections on Apache with Directives
associated with mod_rewrite or mod_redirection.

Otherwise, you'd be stuck with administering redirections on all
servers you ever move from, and that sounds complicated.

This is how I'd classify redirections:
http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO_Common_URL_R...rection



//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//



steve wrote:
> Hi,
> I decided to completely move my site (currently on IIS) to a new server
> (Apache) and a new domain (and structure). i.e. complete change except the
> majority of contents.
>
> I want to save my most important incoming links and redirect them to the new
> appropriate page as they bring some traffic and have been posted on forums
> and referenced by other sites.
> e.g. oldsite.com/myblog/post23.htm ==>
> newsite.com/content/blog/blog.php?item=234
>
> What would be the best compromise?
> I dont care about loosing some *specific* links and just redirect them to
> the index.html of the new site. But i would like to keep a few specific
> ones.
>
> I am thinking to create an IIS script for the general redirection AND add
> the "specific" redirections as well.
> I am a complete newbie on IIS (not much better on Apache!...). Can you guide
> me with an example or at least a place to read? I posted my question in a
> few forums with no response.
> The fact that i am moving to Apache should not matter, i just need info on
> the redirection.
>
> Any help/links would be greately appreciated.

 >> Stay informed about: Newbie: help with redirection script 
Back to top
Login to vote
David Wang

External


Since: Dec 22, 2006
Posts: 560



(Msg. 3) Posted: Tue Dec 26, 2006 11:42 am
Post subject: Re: Newbie: help with redirection script [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Then I suggest using the HttpRedirect property.

http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library...S/b652c

At the old site, you want to set a general HttpRedirect at
/technicalblog to 302 redirect to /myblog .

Then you want to unset HttpRedirect to "" at the IIsWebFile for the
specific URLs that you want to keep at the old site.

This allows you to have the logic "redirect all from X to Y except for
URLs W and Z"


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//


steve wrote:
> Hi,
> I decided to completely move my site (currently on IIS) to a new server
> (Apache) and a new domain (and structure). i.e. complete change except the
> majority of contents.
>
> I want to save my most important incoming links and redirect them to the new
> appropriate page as they bring some traffic and have been posted on forums
> and referenced by other sites.
> e.g. oldsite.com/myblog/post23.htm ==>
> newsite.com/content/blog/blog.php?item=234
>
> What would be the best compromise?
> I dont care about loosing some *specific* links and just redirect them to
> the index.html of the new site. But i would like to keep a few specific
> ones.
>
> I am thinking to create an IIS script for the general redirection AND add
> the "specific" redirections as well.
> I am a complete newbie on IIS (not much better on Apache!...). Can you guide
> me with an example or at least a place to read? I posted my question in a
> few forums with no response.
> The fact that i am moving to Apache should not matter, i just need info on
> the redirection.
>
> Any help/links would be greately appreciated.
 >> Stay informed about: Newbie: help with redirection script 
Back to top
Login to vote
"Kirit_Sælensminde

External


Since: Oct 11, 2006
Posts: 6



(Msg. 4) Posted: Tue Dec 26, 2006 10:14 pm
Post subject: Re: Newbie: help with redirection script [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

David Wang wrote:
> Then I suggest using the HttpRedirect property.
>
> http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library...S/b652c
>
> At the old site, you want to set a general HttpRedirect at
> /technicalblog to 302 redirect to /myblog .

If this is a permanent change (I thought it was, but maybe I missed
something in your post David didn't) then you want to use a 301 rather
than a 302. For a temporary redirect (i.e. you're doing this for a
short period for some reason) then you should use a 307.

http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3

The 301 tells the search engines that it is the same content at a new
home. It also tells the smarter browsers to update their bookmarks
(although I don't know if any browser actually does this).


K

>
> Then you want to unset HttpRedirect to "" at the IIsWebFile for the
> specific URLs that you want to keep at the old site.
>
> This allows you to have the logic "redirect all from X to Y except for
> URLs W and Z"
>
>
> //David
> http://w3-4u.blogspot.com
> http://blogs.msdn.com/David.Wang
> //
>
>
> steve wrote:
> > Hi,
> > I decided to completely move my site (currently on IIS) to a new server
> > (Apache) and a new domain (and structure). i.e. complete change except the
> > majority of contents.
> >
> > I want to save my most important incoming links and redirect them to the new
> > appropriate page as they bring some traffic and have been posted on forums
> > and referenced by other sites.
> > e.g. oldsite.com/myblog/post23.htm ==>
> > newsite.com/content/blog/blog.php?item=234
> >
> > What would be the best compromise?
> > I dont care about loosing some *specific* links and just redirect them to
> > the index.html of the new site. But i would like to keep a few specific
> > ones.
> >
> > I am thinking to create an IIS script for the general redirection AND add
> > the "specific" redirections as well.
> > I am a complete newbie on IIS (not much better on Apache!...). Can you guide
> > me with an example or at least a place to read? I posted my question in a
> > few forums with no response.
> > The fact that i am moving to Apache should not matter, i just need info on
> > the redirection.
> >
> > Any help/links would be greately appreciated.
 >> Stay informed about: Newbie: help with redirection script 
Back to top
Login to vote
David Wang

External


Since: Dec 22, 2006
Posts: 560



(Msg. 5) Posted: Tue Dec 26, 2006 11:03 pm
Post subject: Re: Newbie: help with redirection script [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Yeah 301 redirection would be better suited for this particular
instance.

The purpose is to permanently redirect most URLs but not redirect
specific URLs.


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//


Kirit Sælensminde wrote:
> David Wang wrote:
> > Then I suggest using the HttpRedirect property.
> >
> > http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library...S/b652c
> >
> > At the old site, you want to set a general HttpRedirect at
> > /technicalblog to 302 redirect to /myblog .
>
> If this is a permanent change (I thought it was, but maybe I missed
> something in your post David didn't) then you want to use a 301 rather
> than a 302. For a temporary redirect (i.e. you're doing this for a
> short period for some reason) then you should use a 307.
>
> http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3
>
> The 301 tells the search engines that it is the same content at a new
> home. It also tells the smarter browsers to update their bookmarks
> (although I don't know if any browser actually does this).
>
>
> K
>
> >
> > Then you want to unset HttpRedirect to "" at the IIsWebFile for the
> > specific URLs that you want to keep at the old site.
> >
> > This allows you to have the logic "redirect all from X to Y except for
> > URLs W and Z"
> >
> >
> > //David
> > http://w3-4u.blogspot.com
> > http://blogs.msdn.com/David.Wang
> > //
> >
> >
> > steve wrote:
> > > Hi,
> > > I decided to completely move my site (currently on IIS) to a new server
> > > (Apache) and a new domain (and structure). i.e. complete change except the
> > > majority of contents.
> > >
> > > I want to save my most important incoming links and redirect them to the new
> > > appropriate page as they bring some traffic and have been posted on forums
> > > and referenced by other sites.
> > > e.g. oldsite.com/myblog/post23.htm ==>
> > > newsite.com/content/blog/blog.php?item=234
> > >
> > > What would be the best compromise?
> > > I dont care about loosing some *specific* links and just redirect them to
> > > the index.html of the new site. But i would like to keep a few specific
> > > ones.
> > >
> > > I am thinking to create an IIS script for the general redirection AND add
> > > the "specific" redirections as well.
> > > I am a complete newbie on IIS (not much better on Apache!...). Can you guide
> > > me with an example or at least a place to read? I posted my question in a
> > > few forums with no response.
> > > The fact that i am moving to Apache should not matter, i just need info on
> > > the redirection.
> > >
> > > Any help/links would be greately appreciated.
 >> Stay informed about: Newbie: help with redirection script 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]