1 month ago

Rewrite in Valet Driver

Posted 1 month ago by EricZwart

I have an old project (non laravel) that i want to run locally in Valet. It uses an .htaccess for nice urls.

To get it to work I have to make a LocalValetDriver.php thats in the root of the domain/dir. But I cant nog find where to put the rewrites. It just does nog work.

Can anyone help me in the right direction what to put in the file. Or any sample?

the htacccess uses this rewrite rules:

RewriteRule ^([A-Za-z0-9-]+)/?$ type.php?tUrl=
RewriteRule ^([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/?$ brand.php?tUrl=&mUrl=
RewriteRule ^([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/?$ article.php?tUrl=&mUrl=&article= 


Please sign in or create an account to participate in this conversation.