Support pretty URLs
This changeset allows ownCloud to run with pretty URLs, they will be used if mod_rewrite and mod_env are available. This means basically that the `index.php` in the URL is not shown to the user anymore. Also the not deprecated functions to generate URLs have been modified to support this behaviour, old functions such as `filePath` will still behave as before for compatibility reasons. Examples: http://localhost/owncloud/index.php/s/AIDyKbxiRZWAAjP => http://localhost/owncloud/s/AIDyKbxiRZWAAjP http://localhost/owncloud/index.php/apps/files/ => http://localhost/owncloud/apps/files/ Due to the way our CSS and JS is structured the .htaccess uses some hacks for the final result but could be worse... And I was just annoyed by all that users crying for the removal of `index.php` ;-)
Showing
- .htaccess 15 additions, 0 deletions.htaccess
- config/config.sample.php 0 additions, 1 deletionconfig/config.sample.php
- core/js/config.php 1 addition, 0 deletionscore/js/config.php
- core/js/js.js 5 additions, 1 deletioncore/js/js.js
- lib/private/route/router.php 7 additions, 1 deletionlib/private/route/router.php
- lib/private/setup.php 6 additions, 0 deletionslib/private/setup.php
- lib/private/urlgenerator.php 1 addition, 1 deletionlib/private/urlgenerator.php
- lib/private/util.php 6 additions, 1 deletionlib/private/util.php
- tests/lib/util.php 20 additions, 0 deletionstests/lib/util.php
Loading
Please register or sign in to comment