Specifying index file for php/symfony app


(Roshan Chamlagai) #1

I have to entry file in my symfony 1.4 app and they are frontend.php and admin.php , i want to configure the caddyfile so that ,

it will redirect to /frontend.php{query} from /
it will redirect to /frontend.php{query} from /frontend.php
it will redrirect to /admin.php{query} from /admin.php

the whole point is i want to make frontend.php as index file ,
can anybody help me ?


(Matthew Fay) #2

Hi @devRoshan,

If you’re using fastcgi, you can change the default index file using the index subdirective. As for redirections, you’re looking for redir.

https://caddyserver.com/docs/fastcgi
https://caddyserver.com/docs/redir


(Abiola Ibrahim) #3

There is no need to redirect /frontend.php to redirect to /frontend.php{query} because the query is included unless you strip it off. Same goes for /admin.php.


(system) #4

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.