here is my code:
RewriteEngine On
RewriteBase /blog/
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteRule ^([0-9]+)/([^/.]+)/?$ catview.php?ctid=$1&cet_slug=$2 [QSA,L]
I need the url: blog/9/iphone
It's working but missing css! Can anyone help me?
You can use following code of .htaccess by which you can acheive your requirement:
RewriteCond %{REQUEST_URI} !\.(?:css|js|jpe?g|gif|png)$ [NC]
RewriteRule ^xyz/(.+)/(.+)/ abc.php?id=$1&name=$2 [L]
RewriteRule ^xyz/[^/]+/[^/]+/(.+)$ $1 [L]