I need
.htaccess
code to 301 redirecthttps://www.example.com
tohttp://www.example.org
.Thanks!
Answer
In your .htacess file, type in the following:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com [NC,OR]
RewriteCond %{HTTP_HOST} ^www.example.com [NC]
RewriteRule ^(.*)$ http://example.org/$1 [L,R=301,NC]
Source: Setting up a permanent 301 redirect via .htacess – InMotion Hosting
Attribution
Source : Link , Question Author : sina jalalvandi , Answer Author : ReinstateMonica3167040