By Tim Gurney on Monday, 20 July 2015
Posted in General Issues
Replies 5
Likes 0
Views 679
Votes 0
Prior to upgrading to Easyblog 5, I had an issue where someone had set themselves up as a blogger and created a load of spammy content on my blog. To fix this I deleted all the content and locked down Joomla, which resulted in pages returning 404 error when someone searched for the bad content.

Having upgraded to Easyblog 5 this behavior seems to have changed and now when someone tries to access one of the 25 or so bad URLs, or enters anything after the /blog/ that does not exist, Easyblog 5 loads the blog Frontpage with a search capability.

I am trying to get Google to drop all of this bad content from SERPS so really want to force a 404 or 410 Error (i.e. the page is gone for good) for this content. Is there a way to do this? Or is Easyblog 5 reporting a 404/410 behind the scenes anyway and then diverting to a search?
Hi Tim Gurney,

Sorry for late reply to this,

Yes, in Easyblog 5, if the blog post is not exist and someone try to access e.g. /blog/... , it will hitting this 404 error.

 404 Sorry but we couldn't find the blog entry that you are looking for
·
Monday, 20 July 2015 10:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

I tried to respond to your Email directly but it bounced and told me to come back here to respond. Appreciate your response, however this is NOT what it is doing. Currently with Easyblog 5 I can type:

URL/blog/apple
URL/blog/batman
URL/blog/chicken
URL/blog/anythingIlike

etc, etc, etc...none of which exist on my website, and everytime it just loads the Easyblog frontpage, where it lists the blog posts. Give it a try with the URL that I supplied in the original mail. No matter what you type after the /blog/ it always loads the frontpage...which is not what I want as I need the 404 / 410 error for bad content.

Appreciate any help you can offer.

Thanks



Tim
·
Monday, 20 July 2015 11:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Tim,

I am sorry for the delay of his reply.

Regarding your issue, can you download the attached 'router.php' file and copy the file to folder 'JOOMLA/components/com_easyblog/' and replace the existing router.php file. Remember to backup the original file before you overwrite with the updated one.

Let me know if the fix solve your issue or not
Hope this help and have a nice day.
Sam
·
Monday, 20 July 2015 13:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Sam.

The replacement router.php seems to fix the issue. I took a copy of the original beforehand so that I can switch back if any issues, but all seems good now.

Regards,
Tim
·
Monday, 20 July 2015 15:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Tim,

Glad to hear your issue resolved now. I will include the same fix in next release of EasyBlog as well
Have a nice day!
Sam
·
Monday, 20 July 2015 15:14
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post