Old domain to new domain Resources Generators htaccess Old Domain To New Domain This redirect is for website that are redirecting an old domain to a new domain but keeping the filenames of the webpages the same. Example # Example of valid markup RewriteCond %{HTTP_HOST} ^old.org$ [NC,OR] RewriteCond %{HTTP_HOST} ^www.old.org$ [NC] RewriteRule (.*)$ http://new.com/$1 [R=301,L] Generator Old Domain Enter your old domain New Domain Enter your new domain Preferred version of new domain Protocol HTTP HTTPS Select a protocol preference WWW WWW NON-WWW Select a www preference .htaccess code # Add the code that will be # generated here to your .htaccess file. Generate Code Discussion