2012-06-08 121 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] 

每一個重定向。