michaellunsford
10-04-2008, 04:04 PM
I have some depreciated content on my site, so I want to move it to a folder called "depreciated." All of this content is contained in unique folders in site root. Moving the files is pretty easy, I just drag them into the "depreciated" folder and I'm done.
Now the problem is some people will want to have access to this data for the foreseeable future with existing links. I can't just cut them off, and a blast email or announcement on the homepage isn't my idea of fun either. Also adding to complexity is these sub-directories are not named with any particular rhyme or reason.
So, I'm thinking .htaccess can help. This code is supposed to redirect everything to a subfolder within the site.
RewriteRule ^(.*)$ /somefolder/$1 [R=301,L]
Easy, but I don't want everything moved. I'd prefer to wrap this in ErrorDocument some kind of way. Any idea how to accomplish this? is .htaccess the answer?
Now the problem is some people will want to have access to this data for the foreseeable future with existing links. I can't just cut them off, and a blast email or announcement on the homepage isn't my idea of fun either. Also adding to complexity is these sub-directories are not named with any particular rhyme or reason.
So, I'm thinking .htaccess can help. This code is supposed to redirect everything to a subfolder within the site.
RewriteRule ^(.*)$ /somefolder/$1 [R=301,L]
Easy, but I don't want everything moved. I'd prefer to wrap this in ErrorDocument some kind of way. Any idea how to accomplish this? is .htaccess the answer?