You need to enable mod_rewrite in your apache configuration. Besides enabling the module, you also need to allow using it in your VirtualHost configuration, with an AllowOverride directive.
On Mon, Aug 9, 2010 at 22:38, el-sid <sydneyari...@gmail.com> wrote: > hello, > i am trying to test out how my app should behave in a production > environment so this is what i did. > In my settings.yml i set this > > prod: > .settings: > no_script_name: true > logging_enabled: false > > i modified my htaccess file to look like this > > > Options +FollowSymLinks +ExecCGI > > <IfModule mod_rewrite.c> > RewriteEngine On > > # uncomment the following line, if you are having trouble > # getting no_script_name to work > #RewriteBase / > > # we skip all files with .something > RewriteCond %{REQUEST_URI} \..+$ > RewriteCond %{REQUEST_URI} !\.html$ > RewriteRule .* - [L] > > # we check if the .html version is here (caching) > RewriteRule ^$ index.html [QSA] > RewriteRule ^([^.]+)$ $1.html [QSA] > RewriteCond %{REQUEST_FILENAME} !-f > > # no, so we redirect to our front web controller > RewriteRule ^(.*)$ index.php [QSA,L] > </IfModule> > > and my index.php looks like this > > require_once(dirname(__FILE__).'/../config/ > ProjectConfiguration.class.php'); > > $configuration = > ProjectConfiguration::getApplicationConfiguration('portal', 'prod', > false); > sfContext::createInstance($configuration)->dispatch(); > > > > > when i put this address > > http://127.0.0.1:8080/ it works perfectly > when i put this > http://uia:8080/module/action > > it gives me this 404 error > The requested URL/module/action was not found on this server. > > when i include the index.php as in > http://127.0.0.1:8080/index.php/module/action it works. > > Anyone knows whats causing this error? What am i missing? > > i googled it and found a similar problem in these forums: > http://oldforum.symfony-project.org/index.php/m/42318/ > but no concrete solutions > > Thanks > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony users" group. > To post to this group, send email to symfony-users@googlegroups.com > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en