I want to rewrite my URLs which are based upon directories I have My directories look like this:
index.php
galleries
-Party Weekend
-2014
-Bunchofimages.png
-Other pics
-Pictures.png
And the urls look like:
example.com/?f=/Party%20Weekend/2014
And I was looking for something like
example.com/Party-Weekend/2014
(Can be a dash or a + sign, doesn't really matter)
(Using .htaccess
seems like the best option but I have no experience with .htaccess
at all)
Also do I need to customize every single folder in the rewrite engine or can this be done dynamicly? (So I don't need to make a new rule for every folder I create)
I tried this but doesn't rewrite anything at all
RewriteEngine On
RewriteRule ^([^/]*)/$ /?f=$1 [L]
Am I doing something wrong here?