0

I want to redirect old pages like this:

http://www.agriturismoborgobiaia.it/index.php?option=com_content&view=article&id=47&Itemid=54&lang=en

to

http://www.agriturismoborgobiaia.it/

Only if query string contains certains value.

How can I do that?

1
  • Do you want to redirect or rewrite? if you redirect you will always display the same page. Commented Mar 24, 2011 at 10:10

2 Answers 2

1

So you have to use mod_rewrite of apache (or whatever your engine is)

RewriteEngine On
RewriteCond %{QUERY_STRING} <a regex here>
RewriteRule ^.*$ http://www.agriturismoborgobiaia.it/ [R,L]

Look at Clean URL, Rewriting Guide and mod_rewrite documentation as references :

Sign up to request clarification or add additional context in comments.

Comments

0

In your .htaccess

Redirect 301 oldpage newpage

1 Comment

And what about : quoting> Only if query string contains certains value.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.