title: Routing problem on my Symfony project on Apache
body: <p>I looked at different topic regarding my problem but it still doesn't work.</p>
  <p>I have just deployed my website in Symfony, on my Debian with Apache.
  I manage to go to the main page, but the others return me a 404 error.</p>
  <p>I saw that it was necessary to add the .htaccess file for the routing, something that I did but it still does not work.</p>
  <p>But when I enter the url: <code>https://myWebsite/index.php/movie</code> it works.</p>
  <p>(Tell me if you need more code)</p>
  <p>EDIT : on the url <code>https://myWebsite.fr</code> the Symfony Tool Bar doesnt work, the error in the console is : <code>https://mywebsite.fr/_wdt/af9d59</code></p>
  <p>RESOLVED : I added the allowoverride in my HTTPS .conf and its working.</p>
  <p>There is my website.conf on my Apache folder &quot;sites-available&quot; :</p>
  <pre><code>&lt;VirtualHost *:80&gt;
  # The ServerName directive sets the request scheme, hostname and port that
  # the server uses to identify itself. This is used when creating
  # redirection URLs. In the context of virtual hosts, the ServerName
  # specifies what hostname must appear in the request's Host: header to
  # match this virtual host. For the default virtual host (this file) this
  # value is not decisive as it is used as a last resort host regardless.
  # However, you must set it for any further virtual host explicitly.
  ServerName mywebsite.fr
  
  ServerAdmin webmaster@localhost
  DocumentRoot /var/www/project/public
  
  &lt;Directory /var/www/project/public&gt;
      AllowOverride All
      Order Allow,Deny
      Allow from All
  &lt;/Directory&gt;
  
  # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
  # error, crit, alert, emerg.
  # It is also possible to configure the loglevel for particular
  # modules, e.g.
  #LogLevel info ssl:warn
  
  ErrorLog ${APACHE_LOG_DIR}/project_error.log
  CustomLog ${APACHE_LOG_DIR}/projec_access.log combined
  
  # For most configuration files from conf-available/, which are
  # enabled or disabled at a global level, it is possible to
  # include a line for only one particular virtual host. For example the
  # following line enables the CGI configuration for this host only
  # after it has been globally disabled with &quot;a2disconf&quot;.
  #Include conf-available/serve-cgi-bin.conf
  RewriteEngine on
  RewriteCond %{SERVER_NAME} =mywebsite.fr
  RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
  &lt;/VirtualHost&gt;
  
  # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
  </code></pre>
  <p>My second .conf <em>mywebsite-le-ssl</em> for the https (using certbot) :</p>
  <p>`</p>
  <pre><code>&lt;IfModule mod_ssl.c&gt;
  &lt;VirtualHost *:443&gt;     
  # The ServerName directive sets the request scheme, hostname and   port that
  # the server uses to identify itself. This is used when creating
  # redirection URLs. In the context of virtual hosts, the   ServerName
  # specifies what hostname must appear in the request's Host:   header to
  # match this virtual host. For the default virtual host (this   file) this
  # value is not decisive as it is used as a last resort host  regardless.
  # However, you must set it for any further virtual host  explicitly.
  ServerName mywebsite.fr
  
  ServerAdmin webmaster@localhost
  DocumentRoot /var/www/mywebsite/public
  
  # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
  # error, crit, alert, emerg.
  # It is also possible to configure the loglevel for particular
  # modules, e.g.
  #LogLevel info ssl:warn
  
  ErrorLog ${APACHE_LOG_DIR}/project_error.log
  CustomLog ${APACHE_LOG_DIR}/projec_access.log combined
  
  # For most configuration files from conf-available/, which are
  # enabled or disabled at a global level, it is possible to
  # include a line for only one particular virtual host. For example the
  # following line enables the CGI configuration for this host only
  # after it has been globally disabled with &quot;a2disconf&quot;.
  #Include conf-available/serve-cgi-bin.conf
  RewriteEngine on
  # Some rewrite rules in this file were disabled on your HTTPS site,
  # because they have the potential to create redirection loops.
  
  # RewriteCond %{SERVER_NAME} =mywebsite.fr
  # RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
  
  
   SSLCertificateFile /etc/letsencrypt/live/mywebsite.fr/fullchain.pem
   SSLCertificateKeyFile /etc/letsencrypt/live/mywebsite.fr/privkey.pem
   Include /etc/letsencrypt/options-ssl-apache.conf
   &lt;/VirtualHost&gt;
   &lt;/IfModule&gt;
  </code></pre>
  <p>`</p>