Hi. I am doing the blog tutorial available on this site. I created a new project with the phalcon CLI. And then tried to access the home page of the project but I get a 404 error. Well all the directories and required files have been generated correctly as far as I can tell and the directory structure looks like this:
/blog .htaccess /public .htaccess index.php
The problem seems to be in the first .htaccess file. Indeed, if I enter the URL base/blog then I get a 404 error. but if I go to base/blog/public, then everything is fine and I can see the home page (You are now flying with Phalcon).
The .htaccess looks like this:
<IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^$ public/ [L] RewriteRule (.*) public/$1 [L] </IfModule>
This is the standard file generated by the phalcon tool and I can't find what is wrong with that file. My configuration is Windows 7 / EasyPHP / Apache 2.4.7 My project URL is located in a subdir of an aliased URL. I tried to move the project in the Apache webroot directory, just in case the aliased URL would be the problem, but then I get an internal server error due to recursion.
Anyone can help me on that one?