2012-06-08 122 views
0

我最近更改了一些我的页面的文件名。例如多个301重定向htaccess

work1.html到ACN-website.html

work2.html到inkdrawn-website.html

目前,我有我的htaccess文件以下;

Options +FollowSymLinks 
RewriteEngine on 
RewriteCond %{HTTP_HOST} ^fullfatdesigns\.co.uk$ 
RewriteRule (.*) http://www.fullfatdesigns.co.uk/$1 [R=301,L] 

ErrorDocument 404 /error/404.php 
ErrorDocument 403 /error/403.php 

我该如何去插入多个301 re-directs到我现有的文件?

谢谢 韦恩

回答

1

你可以RewriteEngine on之后添加

RewriteRule oldPage\.html http://www.fullfatdesigns.co.uk/newPage.html [R=301,L] 

每一个重定向。