my rewriterule's are not working correctly in the htaccess file

42 Views Asked by At

Im trying to create pretty urls for a site im currently working on but each time i navigate to the pretty url it tells me the page dont exist, could someone take a look at my code and see what i am missing or doing wrong

I have watched tutorials and searched online for written examples which is how i come up with the code i got but i just cant seem to get it to work

Here is the code

RewriteEngine on

RewriteRule ^sub_cat/([0-9]+)/([0-9]+) view_sub_cat.php?tcid=$1&scid=$2 [NC,L]

Thanks in advance

1

There are 1 best solutions below

3
AudioBubble On

Try adding these two lines of code to your .htaccess file

      RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d