rewrite rule not working

13 September 2018, 10:47
Hi all.
I tried to use the rewrite rule for the symfony framework. I build a very simple page that randomized a number and print it on the screen and the symfony routing should view this page when i'm addressing

With the debug server of symfony it's worked, but when I try it on the Hiawatha server i'm getting error 404.

I used the suggested rewrite rule from the manual:
ToolkitID = Symfony2
RequestURI isfile Return
Match .* Rewrite /app.php

Any ideas?
Hugo Leisink
16 September 2018, 10:33
Does the virtual host configuration for your website contain a 'UseToolkit = Symfony2' line?
Does your website contain a app.php file?

I don't know or use Symfony2. This is a rewrite rule I received from a Symfony2 user a long time ago. Might very well be that Symfony has changed in time and needs a different rewrite rule. Is there a .htaccess file in your Symfony2 directory? If so, what's in it?
16 September 2018, 11:17
Hugo many thanks.
the problem was that my configurations file didn't contain 'UseToolkit = Symfony2' line. Its' probably written in the manual page and I missed that.
Regarding the app.php file, I forgot to mentions that I changed it to index.php because this is my landing page.
This topic has been closed.