I'm looking for some specific advise - I am removing Joomsef from one of my sites as the support is poor and I need to rewrite some specific url's generated by the widgetkit component as the core sef does not seem to target these.
Anyway, one of the url's previously generated by Joomsef is /residential-work/buckingham-street the url for this page without Joomsef is /residential-work?layout=edit&id=32
I have been fiddling around with the .htaccess for a couple of hours trying to get the correct rule to no affect - always a 404 on the /residential-work/buckingham-street url.
My latest attempt was:
RewriteRule ^/residential-work?layout=edit&id=32$ residential-work/buckingham-street [R=301,L]
But no joy, I have also tried adding the rule in different area's of the htaccess but am still unable to get the rule to work.
Once I have it working I need to replicate this across a number of url's so any help getting this working would be most appreciated.
Edit: I have just tried the following also and this does not work either:
RewriteCond %{QUERY_STRING} (^|&)layout=edit($|&)
RewriteCond %{QUERY_STRING} (^|&)id=32($|&)
RewriteRule ^residential-work$ /residential-work/buckingham-street?&%{QUERY_STRING}
So in summary, I want to rewrite /residential-work?layout=edit&id=32 so that it is residential-work/buckingham-street
Regards Donna