Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.htaccess #881

Closed
anonymous-matomo-user opened this issue Jul 25, 2009 · 3 comments
Closed

.htaccess #881

anonymous-matomo-user opened this issue Jul 25, 2009 · 3 comments
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Milestone

Comments

@anonymous-matomo-user
Copy link

I run my server with session.auto_start at on, which causes a problem due to the way the Zend Session Object is done.

I would suggest a htaccess with the following rule:


At any rate, this .htaccess coule eventually be used for url routing purposes, for clean urls.

@mattab
Copy link
Member

mattab commented Jul 27, 2009

we should not rely on .htaccess for application level logic;
what exactly is the problem you mention? please post steps to reproduce.

@robocoder
Copy link
Contributor

I believe mt's configuration would have been an issue even before #828 because Zend_Auth depended on Zend_Session indirectly.

session.auto_start is off in a default PHP configuration.

It's specifically wrong for it to be "on" for Zend Framework apps (http://framework.zend.com/manual/en/zend.session.advanced_usage.html) because it causes an E_NOTICE to be thrown when Zend_Session::start() is called (either directly or by Zend_Session_Namespace).

We can't guard against this programmatically, e.g.,

@ini_set('session.auto_start', 0);

because the session has already been started by the time the PHP executes.

We should document this as a system requirement rather than adding the .htaccess rule. (In fact, we should probably remove piwik/.htaccess from the build so that it doesn't overwrite the user's configuration.)

@robocoder
Copy link
Contributor

opened #887 to exclude .htaccess from future builds

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Projects
None yet
Development

No branches or pull requests

3 participants