Dynadot .com transfer sale, only $10.12 with coupon code DYNA12, available while supplies last, ends October 31, 2026.

Problem with 301 redirect

Namecheap AuctionsNamecheap Auctions
Spacemail by SpaceshipSpacemail by Spaceship
SpaceshipSpaceship
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:
Close
0
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
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.
 
Close
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]
 
Close
0
DomainEasy: white label portfolios are live. Enable yours.

We're social

Escrow.com
Spaceship
CryptoExchange.com
Domain Recover

NamePros updates

Quick replies: search, your most used replies, and more on every post
Quick replies are easier to find and use now. The quick reply menu has a search box. Type a few letters to find the reply you want. A...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back