Forum Moderators: phranque

Message Too Old, No Replies

redirect 301 with get argument

         

creale

9:12 am on Apr 1, 2014 (gmt 0)

10+ Year Member



HEllo,

I want to redirect the old url of my site with a new one wrote by wordpress... by htaccess

What i want :

for a category :

http://www.example.com/boutiques-witty?type=7
to
http://www.example.com/portfolio-cats/beaute-sante/

Another example for the protfolio's items :

/boutiques-witty?id=72
to
/portfolio/devred-habillement-homme-pret-a-porter-vetements/``

Thank you by advance

[edited by: phranque at 1:47 pm (utc) on Apr 1, 2014]
[edit reason] Please Use example.com [webmasterworld.com] [/edit]

phranque

1:52 pm on Apr 1, 2014 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



welcome to WebmasterWorld, creale!


it would be easiest to internally rewrite these urls to a script which does the parameter name check and value lookup to find the new url.
the script should respond with a 301 status code and a Location: header with the new url.

creale

2:14 pm on Apr 1, 2014 (gmt 0)

10+ Year Member



thank you i have handle it with a wp plugin...

bye

phranque

2:26 pm on Apr 1, 2014 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



same thing.