0

The .htaccess code is given below

Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteBase /shoppe
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^cat/([^/]+)$ sub-category.php?category=$1 [NC,L]re

2 Answers2

0

Have you enable the rewrite module on httpd.conf?

Jomar Llevado
  • 69
  • 2
  • 10
  • where can i enable that?? –  Mar 28 '16 at 10:24
  • Go to XAMPP control panel click config on apache then click httpd.conf find this on your text editor : #LoadModule rewrite_module modules/mod_rewrite.so and remove the '#', then restart apache. I hope this solves because I did the same before. – Jomar Llevado Mar 28 '16 at 10:34
0

Your RewriteRule has bad flag delimiters, it should be something like:

RewriteEngine On
RewriteRule ^([^/]*)\.php$ /sub-category.php?category=$1 [L]
Adam
  • 1,294
  • 11
  • 24
  • Also, as Jomar Llevado says, you should make sure mod_rewrite is enabled: http://stackoverflow.com/questions/869092/how-to-enable-mod-rewrite-for-apache-2-2 – Adam Mar 28 '16 at 10:26