Google Console / Site Map / Address Bar

Username epiz_31779207

Hello,

@lovebug @wackyblackie @Greenreader9 Sorry to call you out but you all help tremendously over the last few days and thought that you have a bit more of an insight in to how my domains are now setup.

www.old-rotherham.epizy.com - New Domain
www.old-rotherham.co.uk - Parked Domain
www.old-rotherham.rf.gd - Old Site - 301 Re-Direct

Which domain should I set up in Google Console and should I use the same in the sitemap?

If anyone enters an address using either the .co.uk or .rf.gd then the address bar shows the .co.uk (Good).
With the .epizy.com it shows the .epizy.com . Is there a way to get these to also show the .co.uk?

Thanks (and after this one I promise to leave you alone for a bit) :slight_smile:
Dave

I would use the co.uk one, since it the the only one you actually own, and will be given more ‘trust’.

You want it to show the same content? You can setup a redirect if you want:
https://tinkertechlab.com/webhosting/htaccess/redirecting#redirection-from-one-domain-to-another-while-keeping-the-file-path

As for bothering us, it’s no problem (At least for me) :slight_smile:

3 Likes

The .epizy,com is where the website is hosted.

If this forwards to the .co.uk and that sends it back as its where it is hosted, would that not cause some type of loop and break the space time continuum or something :slight_smile:

Thanks
Dave

Nope, it should not. If it does, its an easy fix to get it back how it was in the beginning.

3 Likes

Hello,

Placed the 301 re-direct in the .htaccess file and it did nothing. Tried to do the same through the control panel and it stopped the site loading altogether.

Thanks
Dave

I don’t see any redirects at all on my end. Can you share the contents of the htaccess file for the epizy.com domain?

3 Likes

Hello,

i moved my attempts to revert back to the known working…

# Do not remove this line or mod_rewrite rules and search engine friendly URLs will stop working
RewriteBase /

RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https [OR]
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Just to force https at the moment

Thanks
Dave

Add this line at the bottom

RedirectMatch 301 ^/(.*)$ https://www.old-rotherham.co.uk/$1

Hello,

Got the following error with both domains…

This page isn’t working at the moment

www.old-rotherham.co.uk redirected you too many times.

ERR_TOO_MANY_REDIRECTS

Thanks
Dave

Hm, you must have been right then. Best wait for someone that knows a bit more about htaccess.

2 Likes

Hello,

Not a problem, nobody should have any .epizy.com links. Was just trying to make sure :slight_smile:

Thanks
Dave

Oh I’m a huge idiot. It does not worked because its a parked domain, so the rule will match all incoming requests. And since the co.uk domain is also following that .htaccess rule, it just keeps reloading with the co.uk URL.

So the correct wat to do this is to check the URL of the request, and if it is epizy.com, change it to co.uk. I know how to do this with PHP, but htaccess would be more efficient.

I’m not very good with htaccess, but try this:

RewriteCond %{HTTP_HOST} ^(www\.)?old-rotherham\.epizy\.com [NC]
RewriteRule ^ https://www.old-rotherham.co.uk%{REQUEST_URI} [R=302,L]

*If it works, change the [R=302,L] to [R=301,L]

And if that does not work, well I guess I’m not very good at this :joy:

3 Likes

Hello,

It didn’t fix it but then it didn’t break it either :slight_smile:

Thanks
Dave

Maybe try this

RewriteCond %{HTTP_HOST} ^www.old-rotherham.epizy.com [NC,OR]
RewriteCond %{HTTP_HOST} ^old-rotherham.epizy.com [NC]
RewriteRule ^(.*)$ https://www.old-rotherham.co.uk/$1 [L,R=302]

And

4 Likes

That seems to be working great.

Thank you all

Dave

5 Likes

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