.htaccess problem

This is a discussion on .htaccess problem within the Linux Web Servers forums, part of the Web Server and Related Forums category; Apache Pros, I have a site with a TON of older "archive" pages, and while I'm not ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-15-2006
info@javelindesign.com
 
Posts: n/a
Default .htaccess problem

Apache Pros,

I have a site with a TON of older "archive" pages, and while I'm not
recreating them, I would like to put them in an "OLD" folder on my
server so if anyone has them bookmarked/etc. they will be redirected
and no have a dead link.

so, basically, what I'm trying to do it;

xyz.com/003.html automatically goes to xyz.com/OLD/003.html
xyz.com/004.html automatically goes to xyz.com/OLD/004.html
xyz.com/005.html automatically goes to xyz.com/OLD/005.html

There are too many 00x.html files for me to put in a list, but rather
somehow I want to join the file not found with the redirect into the
OLD directory. Then, I can put my custom "File not found" page in
there. Make sense? PLEASE HELP.

Thanks,

Jay

  #2 (permalink)  
Old 03-28-2007
Massimo Fabbri
 
Posts: n/a
Default Re: .htaccess problem

info@javelindesign.com wrote:
> Apache Pros,
>
> I have a site with a TON of older "archive" pages, and while I'm not
> recreating them, I would like to put them in an "OLD" folder on my
> server so if anyone has them bookmarked/etc. they will be redirected
> and no have a dead link.
>
> so, basically, what I'm trying to do it;
>
> xyz.com/003.html automatically goes to xyz.com/OLD/003.html
> xyz.com/004.html automatically goes to xyz.com/OLD/004.html
> xyz.com/005.html automatically goes to xyz.com/OLD/005.html
>
> There are too many 00x.html files for me to put in a list, but rather
> somehow I want to join the file not found with the redirect into the
> OLD directory. Then, I can put my custom "File not found" page in
> there. Make sense? PLEASE HELP.
>
> Thanks,
>
> Jay
>


Use mod_rewrite with an appropriate regular expression
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:15 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0