Skip to content

Instantly share code, notes, and snippets.

@ahmadawais
ahmadawais / .htaccess
Last active August 29, 2015 14:14
301 redirect for all URLs when you change your base domain
#addthese two lines in the root folder of your old domain inside .htaccess file
RewriteEngine on
RewriteRule (.*) http://newdomain.com/$1 [R=301,L]