How to redirect url in index.php?title=plip to a specific url like /my-page? I develop a new drupal website to replace another website.
So, in order to not loose my Google SEO from the old website, I create URL rewriting rules.

Everything is ok except for old urls beginning with index.php, like index.php?title=plip

I would like to redirect like this :

RedirectPermanent /index?title=plip http://new.drupal/my-page


It is normal because of this, in Drupal .htaccess file :

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteCond %{HTTP_USER_AGENT} !MSIE
RewriteRule ^ index.php [L]


But how can I do to get my redirection from urls like index.php?title=plip ?

I tried with the flag S to create an If-Else-like rule but it doesn't work.

Is there any chance to make it possible ?
You should be able to make this work using the Rules module, as detailed below.
Looking at your path (= /index.php?title=plip) I would try to make the value (= plip) of the URL argument (= title) available as a new variable to the Rules module. To do so, you can use the Rules URL Argument module. Here is a quote about it (from its project page):

... provides two rules conditions based on URL arguments:

check if a URL argument is present.
compare the value of an URL argument.

It also provides an action that makes the value of an URL argument available as new variable to Rules.

The newly provided Rules actions and conditions can be found under the &quot;URL Argument&quot; conditions and actions groups in the rule configuration interface.
For an example of how to use it, refer to Comment # 3 in issue # 1686360 which is about &quot;Pass an amount to the url, ie; site/content/node-title?amount=10 or /node-title?=amount:10&quot;. Here is the relevant part of it:


add a &quot;Check if URL argument exist&quot; condition to your rule and set the &quot;ARGUMENT&quot; value to &quot;amount&quot;.
add &quot;Provide URL argument value&quot; action to the rule and set &quot;URL ARGUMENT NAME&quot; value to &quot;amount&quot; and in the &quot;Provided variables&quot; section &quot;ARGUMENT FROM URL - Variable name&quot; to e.g. &quot;amount_from_url&quot;.

You will now be able to use the amount value as a variable &quot;amount-from-url&quot; for other actions in this rule.