htaccess 301 redirect help needed

Posted by John on Pro Webmasters See other posts from Pro Webmasters or by John
Published on 2012-06-07T15:40:09Z Indexed on 2012/06/07 16:48 UTC
Read the original article Hit count: 199

Filed under:
|
|

Due to some issues in my site many pages are visible as duplicate using : www.example.com/page.html?task=view but it's content is exactly same as www.example.com/page.html.

One way is to use http 301 redirect from www.example.com/page.html?task=view to www.example.com/page.html when anybody fetches page with arguments. But links like www.example.com/page.html?task=view will remain visible to outside world.

Another way is canonicalization which I don't want to use as it is difficult to insert the tag in Joomla CMS.

I want to hide www.example.com/page.html?task=view from external world.

Is it possible to change the url from www.example.com/page.html?task=view to www.example.com/page.html ? I mean if there is href link of www.example.com/page.html?task=view in my web page, it should be visible to external world as without any arguments. This is different from using 301 to convert externally accessed page : www.example.com/page.html?task=view to without using arguments in .htaccess.

© Pro Webmasters or respective owner

Related posts about seo

Related posts about htaccess