I cannot get my .htaccess file working properly. Please can someone help me correct it.
I used http://htaccess.madewithlove.be/ to try and get it correct, but with no success.
http://www.mydomain.co.uk/bootstrap/rolex-watch.php should show in the address bar as http://www.mydomain.co.uk/bootstrap/rolex-watch and show the rolex-watch.php page
http://www.mydomain.co.uk/bootstrap/products.php?f=Watch&b=Tissot&t=T-Touch should show in the address bar as http://www.mydomain.co.uk/bootstrap/products/Watch/Tissot/T-Touch and show the products page with f and optional parameters b and t parameters set.
.htaccess File contents
ErrorDocument 404 /bootstrap/404.php
ErrorDocument 403 /bootstrap/403.php
Options +FollowSymLinks
Options +Indexes
RewriteOptions inherit
RewriteEngine on
RewriteRule ^bootstrap/products/(.*)/(.*)/(.*)$ bootstrap/products.php?f=$4&b=$5&t=$6
RewriteRule ^bootstrap/products/(.*)/(.*)$ bootstrap/products.php?f=$4&b=$5
RewriteRule ^bootstrap/products/(.*)$ bootstrap/products.php?f=$4
RewriteRule ^bootstrap/products/search/(.*)$ bootstrap/products.php?s=$1
Redirect bootstrap/rolex-watch.php http://www.mydomain.co.uk/bootstrap/rolex-watch
Redirect bootstrap/scrap-gold.php http://www.mydomain.co.uk/bootstrap/scrap-gold
Redirect bootstrap/eternity-ring.php http://www.mydomain.co.uk/bootstrap/eternity-ring
Redirect bootstrap/engagement-ring.php http://www.mydomain.co.uk/bootstrap/engagement- ring
Redirect bootstrap/wedding-ring.php http://www.mydomain.co.uk/bootstrap/wedding-ring
Redirect bootstrap/diamond-ring.php http://www.mydomain.co.uk/bootstrap/diamond-ring
Redirect bootstrap/inferno-diamonds.php http://www.mydomain.co.uk/bootstrap/inferno- diamonds
Redirect bootstrap/radley-products.php http://www.mydomain.co.uk/bootstrap/radley-products
RewriteRule ^([^\.]+)$ $1.php [NC,L]