Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-21283

Documentation: Incorrect/missing rewrite rules in htaccess setup example

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: High High
    • None
    • 5.1
    • Documentation, Install
    • None
    • eZ Publish 5.1

    Description

      In the documentation, there is an htaccess example (virtual host setup) htaccess example

      It seems that a few rules incorrectly start with a forward slash, which leads to - for example - missing css stylesheets.

      Offending lines:

      RewriteRule ^/design/[^/]+/(stylesheets|images|javascript|fonts)/.* - [L]
      # Assetic rules for eZ Publish 5.1 and higher:
      RewriteRule ^/css/.*\.css - [L]
      RewriteRule ^/js/.*\.js - [L]
      

      Additionally, the following should exist for bundles:

      # Following rule is needed to correctly display assets from bundles
      RewriteRule ^bundles/ - [L]
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            joao.inacio-obsolete@ez.no Joao Inacio (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: