This is my .htaccess
file:
Options +FollowSymLinks
Options -Multiviews
RewriteEngine On
RewriteBase /website/
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule .? - [S=20]
RewriteRule ^(.*)$ $1.php
RewriteRule ^([a-z0-9_-]+)/([a-z0-9_-]+)(/)?$ index.php?occ=$1&cat=$2
now these 2 lines together are not working for example:
if I were to go to contact.php, I would type in my url: localhost/website/contact and it would work
however if I want to go to location/website/index.php?occ=occasion&cat=category by typing this in my url: localhost/website/occasion/category it will only work if I remove the first rewrite rule
but then I cant go to localhost/website/contact anymore
what am I missing here?