404 errors and how to remove urls permanently

Discuss Search Engine Optimization in relation to Joomla! 3.x. This forum will also have discussions on SEF/SEO Joomla! 3.x extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Post Reply
User avatar
bluesardine
Joomla! Explorer
Joomla! Explorer
Posts: 490
Joined: Fri Nov 16, 2007 10:49 pm
Location: Cornwall
Contact:

404 errors and how to remove urls permanently

Post by bluesardine » Tue Jun 11, 2019 6:59 am

Hi Guys

On my quest for better SEO on my website i have changed navigation a little. Which means my Joomla RE-Direct Component is throwing up 404 errors...plus the other story of 404 from site.ru but we wont open that message up :p

Now yes i can add a redirect via Joomla Redirects or i could use Admin Tools to do the same thing in from old url to the new one, but surely that does not get rid of the old url from Google or other search engines. Plus would a search engine think there are now 2 urls with the same data on!!!

I had raised this question on a SEO forum, this is what they advised:

This method is quick, fast and effective.
First create a page, goneforever-410.html, Make it look basically like your current 404 page, except make it return a 410 status code.
Add the following lines to your lightspeed .thaccess file.
ErrorDocument 410 /goneforever-410.html
Now find the line of code in your htaccess file that looks like this
RewriteEngine On
Then immediately add one line for each page / url that you want gone forever, make them look like what follows.


Now is there an easier way in Joomla, or is one of the redirection methods going to flag search engines to remove old url.

regards Pete
Last edited by toivo on Tue Jun 11, 2019 7:10 am, edited 1 time in total.
Reason: mod note: moved, note related to 3.x Security
Joomla Web designer Cornwall https://www.swankypixels.com
Wedding Photographer Cornwall https://www.peterhaken.com

"I am enough of an artist to draw freely upon my imagination"
Albert Einstein

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 25942
Joined: Mon Oct 27, 2008 9:27 pm
Location: Akershus, Norway

Re: 404 errors and how to remove urls permanently

Post by Per Yngve Berg » Tue Jun 11, 2019 7:12 am

Mod. Note: Relocated the topic to the SEO forum. Not security related.


Post Reply

Return to “Search Engine Optimization (Joomla! SEO) in Joomla! 3.x”