redirect options for specific files only

redirect options for specific files only

am 17.07.2007 23:18:37 von DFS

IIS 6 on server 2k3.

I know I can redirect entire sites or virtual directories to another
location such as a network share or other URL. What about just certain
individual files though? A large site is being updated and I need all the
old files to remain accessible so people with saved links, or search engines
that may dish out the soon to be 'old' urls, will get to the right place. I
know each file could be modified and coded to redirect but what are my
options just using IIS?

I've looked at the IIS Help and see there are options to use wildcards but
I'm confused since you have to redirect at the site or vd level??? I want
the site to continue serving pages from the local directory, which will
contain all the new files and the old files, but just redirect when a
request for an old file occurs... is this possible using only IIS options?

Re: redirect options for specific files only

am 18.07.2007 10:10:36 von Kristofer Gafvert

Hello,

Yes, you can redirect on file level. In IIS Manager, just right click the
file, click Properties and select "A redirection to a URL".

You can of course also do this by code if you for example have a list of
old files and their new location.


--
Regards,
Kristofer Gafvert
http://www.gafvert.info/iis/ - IIS Related Info


David wrote:

>IIS 6 on server 2k3.
>
>I know I can redirect entire sites or virtual directories to another
>location such as a network share or other URL. What about just certain
>individual files though? A large site is being updated and I need all the
>old files to remain accessible so people with saved links, or search
>engines that may dish out the soon to be 'old' urls, will get to the right
>place. I know each file could be modified and coded to redirect but what
>are my options just using IIS?
>
>I've looked at the IIS Help and see there are options to use wildcards but
>I'm confused since you have to redirect at the site or vd level??? I want
>the site to continue serving pages from the local directory, which will
>contain all the new files and the old files, but just redirect when a
>request for an old file occurs... is this possible using only IIS options?

Re: redirect options for specific files only

am 18.07.2007 13:46:27 von DFS

thank you!

"Kristofer Gafvert" wrote in message
news:xn0f8ug5rgoercl00g@news.microsoft.com...
> Hello,
>
> Yes, you can redirect on file level. In IIS Manager, just right click the
> file, click Properties and select "A redirection to a URL".
>
> You can of course also do this by code if you for example have a list of
> old files and their new location.
>
>
> --
> Regards,
> Kristofer Gafvert
> http://www.gafvert.info/iis/ - IIS Related Info
>
>
> David wrote:
>
>>IIS 6 on server 2k3.
>>
>>I know I can redirect entire sites or virtual directories to another
>>location such as a network share or other URL. What about just certain
>>individual files though? A large site is being updated and I need all the
>>old files to remain accessible so people with saved links, or search
>>engines that may dish out the soon to be 'old' urls, will get to the right
>>place. I know each file could be modified and coded to redirect but what
>>are my options just using IIS?
>>
>>I've looked at the IIS Help and see there are options to use wildcards but
>>I'm confused since you have to redirect at the site or vd level??? I want
>>the site to continue serving pages from the local directory, which will
>>contain all the new files and the old files, but just redirect when a
>>request for an old file occurs... is this possible using only IIS options?

Re: redirect options for specific files only

am 19.07.2007 07:27:42 von David Wang

On Jul 17, 2:18 pm, "David" wrote:
> IIS 6 on server 2k3.
>
> I know I can redirect entire sites or virtual directories to another
> location such as a network share or other URL. What about just certain
> individual files though? A large site is being updated and I need all the
> old files to remain accessible so people with saved links, or search engines
> that may dish out the soon to be 'old' urls, will get to the right place. I
> know each file could be modified and coded to redirect but what are my
> options just using IIS?
>
> I've looked at the IIS Help and see there are options to use wildcards but
> I'm confused since you have to redirect at the site or vd level??? I want
> the site to continue serving pages from the local directory, which will
> contain all the new files and the old files, but just redirect when a
> request for an old file occurs... is this possible using only IIS options?


Yes it is possible. Remember, IIS has no idea which are new files vs
old files. It's all just files to IIS. So, you need to set redirection
individually for every single file in IIS.

If that sounds cumbersome, then you will need to use 3rd party URL
rewriting software for IIS to do wildcard rewrites of old URL to new
URL.


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