Forum Moderators: phranque

Message Too Old, No Replies

Redirect 301 .php? format wordpress url

         

dantasdesouza

5:26 pm on Feb 28, 2011 (gmt 0)

10+ Year Member



Hi, I am not able to redirect an old page (http://www.rtcdecor.com.br/design3d.php?id_album=71&id_colecao=41) in php to a new page (http://www.rtcdecor.com.br/design3d/) created in wordpress. The redirection is done, but it maintains the expression after the final. php (http://www.rtcdecor.com.br/design3d/?id_album=71&id_colecao=41), due to the redirection of this leads to a nonexistent page.
I wonder whether we can redirect only to send the destination address without keeping the expression at the end of the URL?
(excuse the errors, translation by google translate).

g1smd

7:53 pm on Feb 28, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Yes, add a question mark to the end of the redirect target and that will remove the query string.

This assumes the redirect is coded using a RewriteRule.