I want use a different name for my website on infinityfree.
The best option is:
1 to redirect the original infinityfree subdomain to a new subdomain - and in this case what to do after writing the htaccess rules? and should I create one htaccess file in htdocs of the new subdomain too or just in the old subdomain htdocs? Index files are to write too?
2 or to create a parked subdomain and in this case where should I point the DNS, cause the subdomains belong to the same account/same id.
You can reply to knowledge base articles, but only to comment on the article itself. If you have questions about your own situation, please create a topic in Hosting Support for that. I moved your post, but please keep this in mind next time.
As for your question itself, you can either add your own domain as a separate website (addon domain) or link it to your existing website (parked domain). Both methods work, but the setup varies a bit.
If you add the domain as a separate website, you’ll need to move the files first: How to move a website to a different directory. After that, you can just configure a Redirect for you old domain. No need to fiddle with .htaccess files for that, you can just use the Redirects tool in the client area.
If you go with the parked domain approach, you don’t need to migrate files, but setting up the redirect from the old domain to the new one might be tricky. Maybe your website software can take care of it, otherwise you’ll need some custom .htaccess rules.
Regarding the DNS configuration, there is no difference between the options. You can use our nameservers, or use your own nameservers and configure the required records yourself. No matter which of the two options above you choose, you’ll have a domain that’s linked to your hosting account, the only thing that really changes is the directory it’s linked to.
sorry.
ok I added a new domain, that actually is a subdomain like the original one isn’t it?
Cause both are in infinityfree, now I should park the original on the new one,(I tried , it says is a subdomain and that I have to add it as a subdomain)
Thanks for the info, I read on the forum about the htaccess rules,
was saying it was working… I tried and it was redirecting well but actually was missing everything on the new url, and is probably due to the empty htdocs (?) there’s not a new directory for the new subdomain… just appears on the file manager the folder with htdocs folder inside empty
the methods parked domain and addon work with domains… not subdomain… mine are subdomains hosted on your platform, the first is a subdomain like all, the other is a new one I just added.
so my question still the same: can I redirect 2 subdomain : the old to the new of the same account/id on infinityfree? Maybe just changing the website url and leaving the main directory website url in the wordpress setting…
If I copy files on the htdocs on the new url gonna result a mess isn’t it? Or can I delete the old url? no I guess
I have to find the way…
Masking url methods does anyone knows?
any code for php can show different url?
or index.html
The question of addon domain or parked domain only applies to custom domains, not subdomains. If you add a subdomain, it’s always added as a standalone website.
Which means the following instructions apply:
Just follow these instructions. They are relatively easy to apply and will result in your website fully working on the new domain name.
All other solutions you’ve proposed either won’t work (e.g. keeping the existing directory), have a lot of downsides (e.g. URL masking), or just unnecessarily complicate the process (custom PHP code, WordPress changes, etc.).
If you insist on ignoring my instructions and coming up with your own solution, then you do you (it’s your website after all). But it seems to me like you’d must be making a big mess and breaking your website.
I made it by filezilla should be ok, isn’t it?
I don’t know exactly… ! I’ve seen that yestarday I haven’t deleted htaccess rules correctly, then I did it again,
Then is not clear to me on the step by step guide You added if we should 1 delete new htdocs folder, 2 JUST CUT THE OLD ONE, 3 paste in the new url folder… I used to make always copy/paste… but you mean that when you cut somehow you also copy the folder?
Anyway I copied the old and pasted in the new url folder… didn’t work, filezilla did it
The file manager is a bit more intuitive for this, but you can also do it with FileZilla. The key point to understand is that with FileZilla, you want to move the files, not copy them. Moving an entire directory over FTP is a single, instant operation. Copying the files involves downloading and re-uploading every file one by one, so of course that’s much slower.