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

Leave a Reply

Your email address will not be published. Required fields are marked *