Thank you opengeek, I've been scouring the net for the resolution whilst modifying .htaccess in all ways imaginable. I will add to tracker, no problem.
However Im in a bit of a sticky situation. I've upgraded the live site to 2.2.2 in order to gain all the latest improvements etc. I really do not want to downgrade that now. Im hoping google is not going to start indexing these URLs because then Im going to have to create custom redirect rules back to friendly URL versions using subfolder notation. I have added noindex,nofollow for the time being.
Is there a piece of code I can roll back, or disable, or reuse from 2.2.0 in order to gain this functionality back until new version with a setting comes out? If this is even possible.
On the other hand, using a plugin - would you have any sample code which I can reuse as my starting point?
Pseudocode something like this?
- If PageNotFound
- Check URL if contains /x/x/x/name.html structure
- Explode URL and stick into $array
- SendForward to appropriate page -> /details.html?a=$array[0]&b=$array[1]&c=$array[2]
Also, would using a plugin be slower as it is handled a layer below mod rewrite? I have a site which uses around 6 separate blocks of rules like the above one, before the modx rule...
[ed. note: papachumba last edited this post 14 years, 5 months ago.]