seddik
seddik

Reputation: 646

Symfony routing not working

I am using a normal host (i.e access to web pages via public_html and no access to php (apache) configuration).

so here what i did

  1. renamed my web dir => public_html
  2. renamed app.php (prod application) to index.php

I've also added a route to my page (template) named "littlebird"

Problem

when I call www.mywebsite.com/littlebird => 404 page not found

but when I use www.mywebsite.com/index.php/littlebird every thing works just fine.

Upvotes: 2

Views: 1061

Answers (2)

zerkms
zerkms

Reputation: 255115

My original guess was that you didn't have the mod_rewrite turned on.

But during our discussion we've found that you have replaced the original .htaccess with something else.

The original .htaccess could be found by this address: https://github.com/symfony/symfony-standard/blob/master/web/.htaccess

Upvotes: 3

Jovan Perovic
Jovan Perovic

Reputation: 20201

It seems to me like you don't have a index.php value within DirectoryIndex.

Try editing your .htaccess file that is located in littlebird and adding/updating it with:

DirectoryIndex index.php index.html

Upvotes: 0

Related Questions