So I created an account on infinity free and added a purchased domain to it dikagg007.in I am currently in the process of migrating my website from old hosting to infinity free, but in the meantime I am trying to redirect my url to dikagg007.unaux.com which I have been able to do.
But I have facing the error that for first time users and now everyone is seeing the 404 infinity free error page idk why this is Happening this is happening on dikagg007.in
The nanservers are actually changed to cloudflare for SSL is that the issue? If it is how can i get a free SSL for my domain on infinity free?
I also get the 404 error when I check your new domain now.
We can probably fix this, but I do want to ask you to reconsider what you’re doing. A brand new domain likely doesn’t get any traffic, so there is not much point in redirecting it to your old domain. And the presence of this redirect will make it more difficult for you to migrate the website as you cannot really preview your site on the new domain if it just redirects everyone to the old domain.
Most people just get the new domain, migrate the website to it, verify everything works on the new domain and then only redirect the old domain to the new one.
As for the issue itself, I had a quick look at your website’s .htaccess file and I see two attempts at redirecting the domain there and I think both codes are wrong. The first line definitely has a syntax error so that may be causing the 404 error.
The easiest way to setup a redirect is using our Redirects tool. Which it seems like you’ve tried, but you appear to have attempted to redirect the URL http://dikagg007.in/$ for a reason that’s unclear to me. If you want to redirect http://dikagg007.in/, you should setup a redirect for that, not for something else.
Firstly, I totally understand what you said in the first half, and initially I wanted to do exactly what you said and I did it successfully on profreehost but I didn’t knew cloudflare and profreehost don’t work hand in hand. I had no other option than to migrate and its not easy as you already know, I cannot go through the process as of right now, that’s why I came up with this as a temporary adjustment (for sometime) until I can actually migrate.
I added $ sign, because I firstly tried without it, still same thing so I thought as cloudflare uses $ for dynamic, infinity free might do the same.
As you suggested I’ll remove that from htacess and use the clients redirect removing the $ sign but does that give me the assurance that it will be fixed not doubting you but I am just tired of this issue. Moreover the biggest thing it works smooth on my end for some reason, making it look like everythings good.
[Update]
As of immediate right now, nothings changed I removed the htacess redirect code and fixed the redirect tools URL, I am waiting if it fixes, also does cloudlare would have to do anything in this?
My recommendation at this point is to go into the .htaccess file and replace everything there with the standard WordPress .htaccess rules only. No redirects or any other configuration changes you may have attempted there.
Then I would just go ahead with the website migration and not worry about the redirect.
If you do want to setup a redirect, I would recommend to do that through Cloudflare instead. That way, you don’t have to worry about WordPress and redirect code interfering with each other, as well as it being a little bit more performant. But again, in this case, I would not bother.
.htaccess code is applied immediately, no need to wait for anything. However, please do keep in mind that:
There was some syntactically invalid .htaccess code at the top of the file. You’ll need to fix or remove that too to solve the 404 error problem.
Cache in your browser may make it seem like changes are not taking effect. You can bypass that by trying to access the page through an Incognito window in your browser.
So I did exactly as you told me to, refreshed the htaccess completely and after doing that redirects were removed as expected, and the https://dikagg007.in actually pointed to the domain register under infinity free which is a good sign.
Next I added the redirect to cloudflare as you told and its working perfectly atleast from my end. I tried from incognito and different browser it works good and as expected, still if you could verify it yourself that no 404 comes again at your end too than i guess problem solved.
If you have any tip to fasten the migration I am all ears