Apache rewrite sample rules

Example Rules domain.com permanently moved to domain2.com RewriteCond %{HTTP_HOST} ^www.domain.com$ [NC] RewriteRule ^(.*)$ http://www.domain2.com/$1 [R=301,L] domain.com/page.html moved to domain.com/new_page.html temporarily RewriteRule ^page.html$ new_page.html [R,NC,L] Nice…