Sign up ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Due to some issues in my site many pages are visible as duplicate using : but it's content is exactly same as

One way is to use http 301 redirect from to when anybody fetches page with arguments. But links like 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 from external world.

Is it possible to change the url from to ? I mean if there is href link of 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 : to without using arguments in .htaccess.

share|improve this question
Have you thought about using jQuery show(), hide(), toggle() or any similar method so you can have /page.html and whatever is displayed with ?task=view hidden on the page. Or have a programmer code in some AJAX. – Anagio Oct 15 '12 at 12:59
Well removing ?task=view will reduce urls and parameters making site better for Google. – AgA Oct 15 '12 at 17:00
If you have both pages indexed Google will decide which to index. If you want only one page indexed i'd use AJAX/jQuery so only 1 URL was needed and not mess with redirects – Anagio Oct 15 '12 at 17:07

4 Answers 4

up vote 0 down vote accepted

You can use URL re-writing but, if you have 2 pages with the same content which uses querystrings, my research shows Google will not penalize you, they will simply ignore one of the pages (and my guess is the one with the querystring).

I would also consider though if you want this 'forwarder' in place to add it with code.

share|improve this answer

If you mean pages visibility to Googlebot, I recommend you to use their Webmaster tools panel like described here: . It describes how you can set up you site parameters to avoid Google to crawl and index pages with identical content.

If you have not yet installed Google Webmater tools for you site, I recommend you to do so at

If you want to reach some invisibility of the pages from other search engines bots try some experiments with robots.txt file, like so:

User-agent: *
Disallow: /*?task=view

This will block all URLs containing "?task=view" to be crawled by robots.

share|improve this answer
Obviously I asked different question. – AgA Jun 14 '12 at 2:33

I guess this is possible by using BOTH .htaccess 301 redirects and URL rewriting.

share|improve this answer
Care to explain how? – John Conde Oct 27 '12 at 1:21
some like this: – Mohamed Anis Dahmani Oct 27 '12 at 1:31

If your app / CMS works without that specific CGI parameter, you could strip the parameter via a rewrite rule, in either a .htaccess or httpd.conf file e.g.

RewriteEngine On

RewriteCond %{QUERY_STRING} task=view
RewriteRule page.html       %{REQUEST_URI}? [R=301,L]
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.