Forum Moderators: phranque
Example: /dir/file-3.htm to /dir/file-003.htm
Files are numbered 1 thru 80.
To 301 from OLD to NEW file names, does this mean I must do a 301 entry for *each* file name like so...
Redirect 301 /dir/file-3.htm http*//www.domain.com/dir/file-003.htm
Redirect 301 /dir/file-4.htm http*//www.domain.com/dir/file-004.htm
Redirect 301 /dir/file-5.htm http*//www.domain.com/dir/file-005.htm
...or is there a global way to do the 301 to the new file names, without affecting future files that are created passed number 80 in that dir?
Thanks
RedirectMatch 301 ^/dir/file-([1-9])\.htm$ http://www.example.com/dir/file-00$1.htm
RedirectMatch 301 ^/dir/file-([1-7][0-9])\.htm$ http://www.example.com/dir/file-0$1.htm
Jim
[edit] Sorry, missed the "past 80" bit on the first try. [/edit]
[edited by: jdMorgan at 8:29 pm (utc) on July 18, 2006]