Flexible URLs
Submitted by toby78 on Tue, 2008-07-08 12:55.Feature Requests
It would be really good if there was a way to overwrite/replace the URL encoding and decoding behaviour...
At the moment it looks like that:
/search.do?indexName=freedb&q=some+keywords
I made a RewriteRule like that:
^/([a-z_]+)-([0-9]+).html$
/search.do?indexName=test&templateName=freedb&q=$1&start=$2
so the new URL should be:
/some_keywords_blablabla-23.html
which should be like:
/search.do?indexName=freedb&q=some_keywords_blablabla&start=690
However I need to do the following now:
1. replace the "_" characters before it is processed the the search action.
2. Do a: start = ($page-1)*30 for the correct page number.
Please let me know how this could be done!
Thanks!
