I have fewcharecords.epizy.com and have now purchased a domain fewcharecords.com - both are working but I would like to redirect traffic that visits epizy address so they arrive at fewcharecords.com domain. What is the best practice in situations like this?
Hope this makes sense.
Do you mean redirecting http://fewcharecords.epizy.com/ to http://fewcharecords.com/ ?
you can create .htaccess
file and put these in it:
RewriteCond %{HTTP_HOST} ^fewcharecords\.epizy\.com [NC]
RewriteRule ^(.*)$ http://fewcharecords.com/$1 [L,R=301,NC]
4 Likes
Thank you for your fast reply:)
Will the file named .htaccess contain anything else?
Does this go into the root of htdos?
Oh, forgot to say put RewriteEngine On
at top of the htaccess
files.
the code i gave you can used everywhere of htaccess file.
yes.
2 Likes
and RewriteEngine On
at top of the htaccess
files.
1 Like
like this?
RewriteEngine On
RewriteCond %{HTTP_HOST} ^fewcharecords.epizy.com [NC]
RewriteRule ^(.*)$ http://fewcharecords.com/$1 [L,R=301,NC]
Nah!
use this:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^fewcharecords\.epizy\.com [NC]
RewriteRule ^(.*)$ http://fewcharecords.com/$1 [L,R=301,NC]
sorry i didn’t check it carefully first
3 Likes
I have created the file with that text and placed into htdocs.
Just tried http://fewcharecords.epizy.com/ but dos not appear to be working yet. I will try again later to see if it has updated.
Thank you.
You can also create redirects from this section too:
(first clear the .htaccess
file)
select your subdomain, then redirect it to your domain.
4 Likes
Perfect this method worked:)
1 Like
Admin
March 8, 2020, 6:34pm
#13
Which solution works best depends on how you set up the domain. If you added your new domain as an Addon Domain, the Redirects too works well. If you added it as a Parked Domain, then .htaccess snippet should be used instead.
4 Likes
system
Closed
April 7, 2020, 6:34pm
#14
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.