change cat-art.php into cat/art.php

Posted by user338635 on Stack Overflow See other posts from Stack Overflow or by user338635
Published on 2010-05-11T19:01:53Z Indexed on 2010/05/11 19:04 UTC
Read the original article Hit count: 487

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

© Stack Overflow or respective owner

Related posts about .htaccess

Related posts about mod-rewrite