petrustone
09-10-2011, 07:42 PM
Hi All,
I am trying to do a redirect using regex, and I am lost.
I tried a few things but it doesn't work.
Can anybody give me a hand?
The objective is to redirect all of the pages of the form:
http://resources.head-massage.net/index.php?cid=6
to the respective page of the form
http://resources.head-massage.net/directory/?cid=6
The site is a Wordpess and it looks like all of the initial urls, (of the form: http://resources.head-massage.net/index.php?cid=6) are being redirected to http://resources.head-massage.net/?cid=6 which don't exist but are landing on the home page of the Wordpress.
The main hosted domain is a drupal with an .htaccess of its own.
This is my attempt for the redirection:
RewriteCond %{HTTP_HOST} ^resources.head-massage\.net/index\.php?cid$ [NC]
RewriteRule ^(.*)$ http://resources.head-massage.net/directory/?cid$1 [L,R=301]
Thanks for any suggestions,
I am trying to do a redirect using regex, and I am lost.
I tried a few things but it doesn't work.
Can anybody give me a hand?
The objective is to redirect all of the pages of the form:
http://resources.head-massage.net/index.php?cid=6
to the respective page of the form
http://resources.head-massage.net/directory/?cid=6
The site is a Wordpess and it looks like all of the initial urls, (of the form: http://resources.head-massage.net/index.php?cid=6) are being redirected to http://resources.head-massage.net/?cid=6 which don't exist but are landing on the home page of the Wordpress.
The main hosted domain is a drupal with an .htaccess of its own.
This is my attempt for the redirection:
RewriteCond %{HTTP_HOST} ^resources.head-massage\.net/index\.php?cid$ [NC]
RewriteRule ^(.*)$ http://resources.head-massage.net/directory/?cid$1 [L,R=301]
Thanks for any suggestions,