Hi Daniel,

try using this .htaccess modified version. I've added two new rules.


Options +FollowSymLinks +ExecCGI
DirectoryIndex index.php

<IfModule mod_rewrite.c>
  RewriteEngine On

  # uncomment the following line, if you are having trouble
  # getting no_script_name to work
  RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^phpMyAdmin phpMyAdmin/index.php [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^phpMyAdmin/(.+)$ phpMyAdmin/$1 [L]

  # 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} !-d
  RewriteCond %{REQUEST_FILENAME} !-f

  # no, so we redirect to our front web controller
  RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>


Regards,
Paulo

On 2 mar, 05:30, Richtermeister <nex...@gmail.com> wrote:
> Hi all,
>
> I know this question is a rookie problem, but I seem to be stuck on
> it..
>
> I've just launched a symfony app on a server, and all works great,
> except that some web-apps that share the webroot are now tricky to
> access.. For example I have phpMyAdmin sitting in the webroot, and I
> used to be able to access it via mysite.com/phpMyAdmin. This url is
> now caught by the front-controller and triggers a 404. Only a direct
> request to phpMyAdmin/index.php gets me access to the app.
>
> My .htaccess file looks as follows:
>
> Options +FollowSymLinks +ExecCGI
> DirectoryIndex index.php
>
> <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} !-d
>   RewriteCond %{REQUEST_FILENAME} !-f
>
>   # no, so we redirect to our front web controller
>   RewriteRule ^(.*)$ index.php [QSA,L]
> </IfModule>
>
> I was under the impression that the !-d flag should fix my problem,
> but it somehow doesn't.
> Thanks for any help!
>
> Daniel

-- 
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

Reply via email to