RewriteEngine on RewriteCond $1 ^(contact-us|faqs|flash|images|includes|index\.php) [NC] RewriteRule ^(.*)$ http://newdomain.com/$1 [R=301,L]
Never been to CodeSnippets before?
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
Redirect only certain files with .htaccess (See related posts)
You need to create an account or log in to post comments to this site.
Related Posts
» mod_rewrite rules to serve a... in apache xhtml modrewrite mimetype htaccess
» Block Blacklisted Bandwidth ... in apache htaccess bandwidth hotlinking http_referer mod_rewrite
» 'Site is under maintenance' ... in sysadmin redirect htaccess mod_rewrite
» Maintenance mode for apache in apache redirect htaccess
» 301 Permanent Redirect rule ... in apache redirect htaccess mod_rewrite
» Protect .svn directories ser... in apache sysadmin svn security subversion htaccess server config cvs protection hidden
Snippets (source code soon to be available) developed by Peter Cooper and powered by Ruby On Rails