I’ve got a website where URLs are rewritten in this format:
http://www.example.co.uk/module/page/query/
http://www.example.co.uk/index.php?m=module&p=page&q=query
Which gives rise to pages such as:
http://www.example.co.uk/schools/view/495/
http://www.example.co.uk/schools/search/park+lane/
Is there any way to make it so that a form (submitting via GET) can submit to the rewritten URL, or is this something I’d need to implement with Javascript?
I wouldn’t recommend doing this with JavaScript if it is in any way fundamental to your system, in fact i wouldn’t recommend doing this with JavaScript at all as there is really no need. You could create a script that your form submits to and then header redirect to the mod rewritten URL from there. For example: