Hi Again !

I have a website I have changed the domain to for better ranking !

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

Already the site 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} ^ [NC,OR]
RewriteCond %{HTTP_HOST} ^ [NC]
RewriteRule ^(.*)$$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

I think what you are looking for is either a single 301 redirect, or a domain replacement redirect.

Try this line here:

RedirectMatch 301 ^/(.*)$$1
1 Like

Hi @Greenreader9 ,

Edit - The Issue is Fixed !

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.