5 users online. Create an account or sign in to join them.Users

Announcement

Symphony's issue tracker has been moved to Github.

Issues are displayed here for reference only and cannot be created or edited.

Browse

Closed#95: Login problems as of 2.0.6

There is a problem with the new .htaccess rules. Here they are:

### ADMIN REWRITE
RewriteRule ^symphony/?$ ./index.php?mode=administration&%{QUERY_STRING} [NC,L]

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteRule ^symphony(/(.*/?))?$ ./index.php?symphony-page=$1&mode=administration&%{QUERY_STRING} [NC,L]

### FRONTEND REWRITE - Will ignore files and folders
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*/?)$ ./index.php?symphony-page=$1&%{QUERY_STRING}  [L]

Notice the ./ before the index.php. This is resulting in strange file path, E.G. [SCRIPT_FILENAME] => /home/path/to/domain/symphony-cms.com/public/./index.php and that, in turn, leads to bad session paths. Specifically /., breaking the login. Solution is to remove the leading ./ in the .htaccess rules. Needs to be tested properly.

forum thread is here

What about this line:

RewriteRule ^image/(.+.(jpg|gif|jpeg|png|bmp))$ //extensions/jit_image_manipulation/lib/image.php?param=$1 [L,NC]

I don’t think this will work if Symphony is installed in a subdirectory. Or am I wrong here?

Strange: If I install Symphony in a subdirectory, I get a different image rewrite rule:

RewriteRule ^image/(.+.(jpg|gif|jpeg|png|bmp))$ ./extensions/jit_image_manipulation/lib/image.php?param=$1 [L,NC]

Shouldn’t it simply be like that:

RewriteRule ^image/(.+.(jpg|gif|jpeg|png|bmp))$ extensions/jit_image_manipulation/lib/image.php?param=$1 [L,NC]

michael-e, I have posted a separate issue in the JIT issue tracker http://github.com/pointybeard/jit_image_manipulation/issues/#issue/8

This has been fixed.

This issue is closed.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.2 or above
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.0 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details