'How to make url like directory style using .htaccess
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?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
