I have a project built with slim 3 and is working as expected ( http://localhost/slimapp/ ). Now what I want to do is in one of the subfolder run an Angular2 application. But as I try to access the subfolder ( http://localhost/slimapp/angularapp/ ) via browser it is redirected to index.php of slim3, which is quite obvious. What I want to achieve is when I visit http://localhost/slimapp/angularapp/ this URL should not be redirected through slim3 .htaccess and it should run an angular application.
So far I tried in .htaccess is add
RewriteRule ^angularapp($|/) - [L,NC]
This results in 404 not found a page for http://localhost/slimapp/angularapp/ .
Any help is much appreciated. Thanks
无需在.htaccess级别上重写它,只需为该特定路径从slim创建一条Web路由,因此您无需访问浏览器,而可以访问Slim App,它将为您访问angular应用。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.