Hi All,
I currently have an .htaccess set up to rewrite to a single URL.
at the minute it is for places. so mysite.com/region/town will rewrite to places.php
i now need to add another, this time for skill i.e. mysite.com/construction/bricklayer and i want it to redirect to skills.php
i have included the re-write below. Any help would be appreciated.
# category two or more levels down
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)([A-Za-z0-9_-]+)/([A-Za-z0-9_-]+)/$ places.php?place=$3&rr=9 [nc,L,qsa]
# category one level down
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([A-Za-z0-9_-]+)/$ places.php?place=$1&rr=13 [nc,L,qsa]