Redirect Htaccess 301文件夹重定向

Redirect Htaccess 301文件夹重定向,redirect,Redirect,这个问题以前被问过上百万次,但现在还没有弄清楚 我的结构如下: http://example.com/category1/subcat2/stuff3<br> http://example.com/category4/subcat5/stuff6<br> http://example.com/category7/subcat8/stuff9 http://example.com/category1/subcat2/stuff3 http://example.com/ca

这个问题以前被问过上百万次,但现在还没有弄清楚

我的结构如下:

http://example.com/category1/subcat2/stuff3<br>
http://example.com/category4/subcat5/stuff6<br>
http://example.com/category7/subcat8/stuff9
http://example.com/category1/subcat2/stuff3
http://example.com/category4/subcat5/stuff6
http://example.com/category7/subcat8/stuff9
我想将它们分别重定向到以下位置:

http://example.com/folder/category11/subcat22/stuff33<br>
http://example.com/folder/category44/subcat55/stuff66<br>
http://example.com/folder/category77/subcat88/stuff99
http://example.com/folder/category11/subcat22/stuff33
http://example.com/folder/category44/subcat55/stuff66
http://example.com/folder/category77/subcat88/stuff99
请注意,添加的文件夹以及所有文件夹和子文件夹的名称都已更改

此外,还有2000多个重定向,我需要手动放置。显然,我不能把它们全部放在根目录下。htaccess自2000多行以来将减慢整个网站的速度


我想将.htaccess分解为尽可能小的部分,即stuff文件夹,因此.htaccess对于每个重定向都是独立的。

文件系统中的每个文件夹都有自己的.htaccess文件。你可以用那些。(我假设您正在使用apache。)我知道这一点,但我不确定链接。。是的,我正在使用Apache。
重写规则^category1/(*)/(*)$folder/category11/$1/$2[L,R=301]
不确定这是否适用于您。