Additional page paths containing query strings do not work

Permalink
I need to redirect about 100 url's containing query strings. But using the build-in tool for additional page paths doesn't work with those url's.

The original url's look like this:
/portfolio/post.php?s=2010-10-01-ijmuiden-hifimeubel-met-boekenkast

Is this a bug in 5.7.5.8 or is there some code for .htaccess i can use to get this working. Or should i better use an add-on like this one:http://www.concrete5.org/marketplace/addons/redirector... to get the job done?

buurvrouw
 
buurvrouw replied on at Permalink Reply
buurvrouw
anyone ... ?

...

I've tried with the add-on 'redirector' now too, but this also fails to redirect those url's. It must be possible to get them redirected.
Could someone shine a light?
MrKDilkington replied on at Permalink Best Answer Reply
MrKDilkington
Hi buurvrouw,

An option for getting this question answered may be Stack Overflow.
https://www.concrete5.org/developers/stack-overflow...

If someone posts a solution on Stack Overflow, please cross-post the answer here.
buurvrouw replied on at Permalink Reply
buurvrouw
I'm one step closer. I found this question on Stack Overflow:
http://stackoverflow.com/questions/30881426/do-301-redirects-work-o...

I implemented the answer in my .htaccess like this:

RewriteEngine On
RewriteCond %{QUERY_STRING} (.+)=2014-08-15-amstelveenbadkamermeubel
RewriteRule ^portfolio/post.php?$ /portfolio/badkamer-meubels/amstelveen-badkamermeubel? [L,NC,R=301]


This redirect does work. Now i want to find a solution on automating the process for just the query part, so i can use the redirector add-on by importing a sitemap with all the old urls.