I'm currently using htaccess in my personal project but i could not make urls works like sitename.com/a/b/c
My base urls: sitename.com/index.php?category=category-name&page=3 How to make this url like sitename.com/category-name/3 or sitename.com/category-name/3/page-name (or page-name.html)
my .htaccess file:
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([A-Za-z]+)/([0-9]+)/?$ index.php?category=$1&page=$2 [L]
It does not work and css, js file does not work. How to make this works? Can anyone help me?
Page: =$_GET['page'];?> works fine but .css file not found error occurs. And also image files have the same error. I tried on localhost and on the server. The problem the same. – mstfdrmz Jul 20 '14 at 20:23