I have routes and request handling mechanism written in fuelphp to calculate the template in server side.
Computing templates on server side is slower in my understanding and I would like to covert all routes to angular routing.
Most of the fuelphp code outputs angularjs views.
Is there a direct or quicker way to convert all php routes to angular routes.
Try this: In your public folder make a .htaccess file and fill it with the following
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
</IfModule>
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.