Permanent 301 redirect not working

Dazza30

Registered
May 4, 2015
2
0
1
United Kingdom
cPanel Access Level
Root Administrator
Hi all, I must be doing something wrong somewhere, please can you help.

I currently have the following urls www.domain.co.uk and blog.domain.co.uk being redirected to www.domain.co.uk.

At the moment, content urls for blog.domain.co.uk are being redirected to there new counterparts on www.domain.co.uk.

However content urls for www.domain.co.uk are being sent to the site 404 page because the content no longer exists. What I want is all old urls like www.domain.co.uk/alcatel-ot710.html to 301 redirect to www.domain.co.uk.

I've set this up in Cpanel, but over 1 hour after doing so the link still goes to a 404 page.
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,227
463
Hello,

Could you post the contents of your .htaccess files (within public_html and the subdirectory)? Ensure you replace actual domain names with examples.

Thank you.