мне нужно сделать SEO дружественных URL-адреса с URL rewriting от:Создание SEO дружественных URL-адреса с URL переписывания
http://www.myurl.com/subfolder/index.php?service=example1&location=city1
http://www.myurl.com/subfolder/cars.php?service=example1&location=city1
http://www.myurl.com/subfolder/bicycle.php?service=example1&location=city1
в
http://www.myurl.com/subfolder/example1/example2/index.html
http://www.myurl.com/subfolder/example1/example2/cars.html
http://www.myurl.com/subfolder/example1/example2/bicycle.html
Мой URL переписывания не работает вообще,
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^index/(\w+)/?$ index.php?service=$1&location=$2
RewriteRule ^cars/(\w+)/?$ cars.php?service=$1&location=$2
RewriteRule ^bicycles/(\w+)/?$ bicycles.php?service=$1&location=$2
И где я должен положить файл .htaccess? В корне или подпапке?
Вы уверены, что не хотите: http://www.myurl.com/subfolder/cars/example1/city1.html? –