I had a gallery folder. Then I have deleted it. However all pages under it are still shown as "unable to find" under Google Web开发者_Go百科masters tools. I want to redirect all pages of that folder to a certain page. How should I do it?
This will redirect all http://host/directory/anypage.html
to http://host/somepage.html
RewriteEngine On
RewriteBase /
RewriteRule ^directory/.+\.html$ somepage.html
精彩评论