Category : .htaccess

I have a multilingual website in Symfony with : http://localhost/en for english website (Default) http://localhost/fr for french website http://localhost/es for spanish website I want to rewrite my default route http://localhost to default website http://localhost/en. All my english routes must pass into http://localhost without /en code in url. For example: http://localhost/crews must display the content of ..

Read more

I have a symfony site. I have an image at: /var/www/site/public/images/QR/984746QR.svg Apache logs give a 404 [27/Oct/2020:13:24:11 +0200] "GET /images/QR/984746QR.svg HTTP/1.1" 404 which according to rewrite rules send it to Symfony: [27-Oct-2020 11:35:24 UTC] [error] Uncaught PHP Exception SymfonyComponentHttpKernelExceptionNotFoundHttpException: "No route found for "GET /images/QR/984746QR.svg"" at /var/www/site/vendor/symfony/http-kernel/EventListener/RouterListener.php line 136 So I am quite sure its ..

Read more

I just deployed my site on a VPS server that works under Debian10 I added the .htaccess file, the routes are working fine. But I have a problem. And I wonder how it is done. However in dev mode, everything works fine. The problem comes from the .htaccess file because when I delete this file ..

Read more

I try to publish a symfony application on an web server. The structure of the webserver is : www gpexe config public src var templates tests vendor I’ve setup an htaccess on the root folder www: RewriteEngine On RewriteBase / RewriteCond %{REQUEST_URI} !^/gpexe/public/ RewriteRule ^(.*)$ /gpexe/public/$1 [L] And there’s also an htaccess on the public ..

Read more

I need some help with configuring Symfony on apache2 web server. My current project category structure is: var/www/domain.com/public_html Inside public_html is where my Symfony application is located. I am stuck at figuring our what I am doing wrong in my either .htaccess or /etc/apache2/sites-available/domain.com.conf files. I am using symfony/apache-pack. My .htaccess files live inside /public ..

Read more