I have php url link which is like this shop/category_list.php?category=1 and want to convert it to shop/category. I used this htaccess but not working, any help.

This is my previous htaccess code. Any help please on how to use it.

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1 [L,QSA]

Hi, I hope you're doing good and still if you didn't find any solution for your .htaccess issue then I suggest you to have a look at this mod_rewrite cheat sheet and please let me know if this really helps you. Also, have you enabled mod_rewrite module in your Apache? - Please apologize for this question if it really hurts you.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.