Can I combine izniburak / php-router with friendly urls?
Closed this issue · 0 comments
NeftaliAcosta commented
I have a project that I recently migrated to a router, in this project I have some friendly urls created with htaccess. Maybe the problem is not direct with php-router but I would like to know if you can help me here.
I need to create these friendly urls:
RewriteRule ^temas/ciudad1 temas?search&ciudad=1 [L]
But I can't because the plugin uses this default setting.
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
In this case, as they are urls with parameters, I can't use router, because I don't want to access another template if not the same one but in a friendly way.
What do you advise me to do in these cases?
Thank you.