Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Qubabos Posted December 18, 2017 Posted December 18, 2017 Hello there, I have a small issue with htaccess Redirect 301, can't redirect those kind of urls: httpx://siteurl.com/forums/topic/topic_id-topic_title/?do=findComment&comment=post_id with " /?do=findComment&comment=*" best solution for me is to redirect those http 404 urls with target at the same topic with httpx://siteurl.com/forums/topic/topic_id-topic_title/?do=getNewComment I'm using .htaccess file to manage all redirects at my site, anyone could help with this ? thank you
bfarber Posted December 18, 2017 Posted December 18, 2017 Why are you trying to manually redirect those style of URLs? The software automatically handles those and will send the user to the correct page, so I am unclear why you are trying to handle this with a .htaccess redirect.
Qubabos Posted December 18, 2017 Author Posted December 18, 2017 Those are deleted topic comments indexed a time ago by googlebot (now with http 404 status) and I'm trying to redirect them to any other place with http 301 (moved permanently). Software itself can't handle deleted content and move users to specific place so I'm trying to do this at server level.
bfarber Posted December 19, 2017 Posted December 19, 2017 My opinion is that if the content was in-fact deleted, then a 404 response code should be returned in 99% of cases. I realize many don't like to see "errors" listed in Webmaster Tools, but often times this is the appropriate response. That said, if you wish to redirect the URLs you are free to do so in htaccess. This article explains how to handle query strings (which can't be used directly in a 'Redirect' command).
Recommended Posts
Archived
This topic is now archived and is closed to further replies.