Hi i got a problem with changing urls. I have files: cat-art.php (cat- category, art- title of an article) and i would like to have nicer access to them: cat/art.php so i wrote some code in .htaccess but it doesnt work.
RewriteCond %{REQUEST_URI} ^/([^-]+)/([^-]+).html$
RewriteRule ^([^-]+)/([^-]+).html$ $1-$2.html [L]
Can sb help me please? Thanks for your help
EDIT:
Changed as rami said and it works but it isn't what i was looking for. it change cat-art.php into cat/art.php and i would like into cat/art.html when i changed it it didnt work.
RewriteRule ^([^-]+)/([^-]+).html$ $1-$2.php [L] - doesnt work
RewriteRule ^([^-]+)/([^-]+).php$ $1-$2.php [L] - works
EDIT2: It works - problems with browser - i deleted history, cookies etc. and now it works in IE FF and Safari