Redirect Help!

Hi Again !

I have a website https://srisaradaengineeering.ga I have changed the domain to https://srisaradaengg.in for better ranking !

Now I want to perform 301 redirect so that crawlers will index the new site !

Already the site srisaradaengineering.ga was indexed by google !

So, I went to the Change of the site tool and there comes the Error (See the Screenshot)

The code I added to perform the Redirect was

RewriteEngine on
RewriteCond %{HTTP_HOST} ^srisaradaengineering.ga [NC,OR]
RewriteCond %{HTTP_HOST} ^www.srisaradaengineering.ga [NC]
RewriteRule ^(.*)$https://srisaradaengg.in/$1 [L,R=301,NC] 

Is anything wrong in the code ? If not why is the error ?

Also, What is the Page Rule for Cloudflare to meet my requirements

Thanks in advance

Come on, second question that you should be able to answer yourself, you have been long enough on the forum :wink:

#tutorial → Redirecting One Domain to Another

1 Like

I know the Page rule method but I want add the code in the .htaccess

RewriteEngine on
RewriteCond %{HTTP_HOST} ^srisaradaengineering.ga [NC,OR]
RewriteCond %{HTTP_HOST} ^www.srisaradaengineering.ga [NC]
RewriteRule ^(.*)$https://srisaradaengg.in/$1 [L,R=301,NC]

@sandro do you know how to Add Code (JS) including wildcard ?

Also do you own this http://sitemeer.com/ ?

Edit -

Thanks Again Sandro I have once again fixed that now everything is fine

Yes really, I should think twice before posting a question, Anyways Thanks ! :wink: