I have an url like this:
page.com?c=example1&a=example2
But i would like to have it like this:
page.com/example1/example2
However if the user is page.com/public/... don’t do anything, because I have directory public/css/smth.css and when i’m trying to access it, it changes to something like page.com?c=public&a=css/smth.css... which isn’t what I want.
How do I do this only for urls that don’t start with public?
My current .htaccess:
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^([^/]+)/([^/]+) index.php?c=$1&a=$2
Your .htaccess file needs to look something like this:
I have not tested the above, but it should be along the right lines