Redirect "component/content/?view=featured" to your home page

I've had this issue with some brand new Joomla websites. One of the first URLs Google indexes is www.yoursite.com/component/content/?view=featured.

In addition to a weird URL, following this link often opens your website without navigation or some other components. While this normally gets resolved after a while without any action (Google updates its index), as a temporary workaround you can use .htaccess file to redirect /component/content/?view=featured to your home page. Simply add flowing code to your .htaccess:

RewriteCond %{QUERY_STRING} ^view=featured$
RewriteRule ^component/content/$ http://www.yoursite.com/? [L,R=301]

Comments  

GUNITREND
# GUNITREND 2013-05-13 18:14
i'm write in my .htaccess but why not redirect to home
Eduardo
# Eduardo 2013-02-18 02:05
Perfect

Newsletter

Subscribe to receive occasional updates on new posts.
Your email will not be used for any other purpose and you can unsubscribe at any time.
Please wait