I have mod rewrite enabled to remove all page extentions....
This is done in httpd.conf as I am using apache on windows
the setup I have is
<IfModule mod_rewrite.c>
Options +FollowSymLinks
Options +Indexes
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^([^\.]+)$ $1.html [NC,L]
</IfModule>
and this makes domain.com/bookings.html
appear as domain.com/bookings
I have php enabled in html files, so it parses all pages for php
But I have now put a search box on my site, and if I search for "music" it will use the url:
domain.com/search?q=music
I would like my urls to look like:
domain.com/search/music
But also, I would like to be able to type
domain.com/search/abba
And it would load the page "search.html" lets call it "search" and it would add the parameter ?q=abba , but then still look like the above example in the URL bar
I'm sure this can be achieved with mod rewrite but I am not sure how to phrase the expression.
Thanks in advance for any help I receive :)