phpsymfonyroutesezpublishezplatform

EzPublish does not find his routes


I have installed ez publish (version: community 15.09, system: apache).

I have installed it in my public_html dir, and the public directory is public_html/web

I can access to the demo page with this URL:

domain.com/

or with this (both version)

domani.com/index.php

but if I try another route, like this:

domain.com/ez

it not work (the server reply: The requested URL /ez was not found on this server.), work only if I include the index in the route:

domain.com/index.php/ez

I searched but found nothing... Why this? How to solve?


Solution

  • What you want to do is basically url rewriting.

    You have 2 ways to do this :

    1. have mod_rewrite enabled on the Apache side and apply a virtual host configuration like in this template. Make sure you replace the placeholders (%STUFF%) by the correct values.

    2. use a .htaccess file in your public_html/web folder : see an example here

    Note : being able to use a .htaccess requires that your apache configuration allows it. It's usually the AllowOverride None|All|... part of your <Directory /path/to/public_html/web>directive : see Apache Documentation here