NameSilo

Problem with 301 redirect

Spaceship Spaceship
Watch

theplastickiD

Established Member
Impact
76
I needed to redirect all of my .co.uk pages to my .com domain.

I have done so with the use of a 301 redirect in a .htaccess file. However I am getting a problem.

It is indeed redirecting and changing .co.uk to .com however it is still adding the /fileName after the URL and the files no longer exisit so I am getting 404 - Component not found errors. I had a forum that has been deleted from my old server. So I now have 148 dead links when i do a site:mydomain.com search.

Can anyone help me with this please.

Many Thanks,
Brett.
 
Last edited:
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable DomainsUnstoppable Domains
I am not good in .htaccess code: but I do remember that I had a very similar problem. I was redirecting some pages but the filenames where also added up after the redirect.

I remember that the solution was quite simple. It was to add something at the end of the URL being used in the redirect code. Something like: site.com/# or site.com/$ or something like it.

I will look for that code in my sites and will post it here if I find it. I encountered this problem 1+ years ago.
 
0
•••
If you could that'd be great. Don't want the google bots coming around a giving me a telling off.

My current .htaccess file looks like this
RewriteEngine on
RewriteBase /

# redirect old domain.co.uk --> new domain.com
RewriteRule (.*) http://www. new domain.com/$1 [R=301,L]
 
0
•••

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Zero Commission
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back