Skip to content

Apache htaccess rules generate 500 error #22

Open

Description

@joeke

Apache 2.2.26
PHP 5.3.28
The default Apache .htaccess settings described on the Wiki page generate a 500 error:
... RewriteCond: bad flag delimiters ...
This is due to the space used in RewriteCond %{USER_AGENT} "MODX RegenCache"
If you remove the space: RewriteCond %{USER_AGENT} "MODXRegenCache",
and also remove the space in the plugin property 'regenerate_useragent' this problem will be solved.

Activity

  1. ysanmiguel commented on Aug 30, 2017

    @ysanmiguel

    Just found another one:

    RewriteRule .* - [E=CACHE_PREFIX:no cache]
    change to (remove space no_cache):
    RewriteRule .* - [E=CACHE_PREFIX:no_cache]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions