01-18-2011, 05:48 AM
A while ago i was kinda getting there with Rewrite, but i've not done it in a while and totally lost it. Basically what im trying to do is if someone types "www.example.co.uk/sub/brochure", it to redirect to "www.example.co.uk/sub/index.php?page=brochure". Im not sure if thats possible or if it would have to be like ".co.uk/sub/page/brochure", but either way i cant get it working. Because the .htaccess is stored in the same folder as the "sub" folder, i tried "RewriteRule ^sub/([a-z]+)$ /sub/index.php?page=$1/ [R]" but that didnt work, and i tried messing about a few other ways but with no look, if anyone can gimmie a hand getting this basic one started im sure i can pick the rest up again.