WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Cherokee webserver and WordPress MU (2 posts)

  1. umasse
    Member
    Posted 5 years ago #

    I got WordPress MU and Cherokee webserver to work, here is how:

    3 rules need to be added to be processed before any others:

    1 - Rule Type: Complex:

    Rule:
    - Regular Expression: ^/blogs/([_0-9a-zA-Z-]+=/(wp-.*|.*\.php(\?.*|))$ AND
    - Not ( File Exists, Match any file, disabled all the other checkboxes )
    Handler: Redirection, 2 lines:
    - Type Internal, Regular Expression: ^/blogs/([_0-9a-zA-Z-]+)/(wp-.*)$ to Substitution: /blogs/$2
    - Type Internal, Regular Expression: ^/blogs/([_0-9a-zA-Z-]+/)/(.*\.php(\?.*|))$ to Substitution: /blogs/$2

    2 - Rule Type: Regular Expression:
    Regular Expression: ^/blogs/(.*)\.php(\?.*|)$
    Handler: FastCGI, Information source: PHP Interpreter. All options left as default.

    3 - Rule Type: Complex
    Rule:
    - Regular Expression: ^/blogs(.*)$ AND
    - NOT ( File Exists, Match any file, disabled all the other checkboxes )
    Handler:
    - Redirection: Internal, Regular Expression: ^/blogs/(.*)$ to Substitution: /blogs/index.php

    Our WPMU installation is in the folder /blogs/, so you need to adjust the regular expressions accordingly.

    Hope this helps someone!

  2. umasse
    Member
    Posted 5 years ago #

    An updated version, with some fixes for wp-content.

    4 rules need to be added to be processed before any others:

    1 - Rule Type: Regular Expression:
    Rule:

    • Regular Expression: ^/blogs/.*files.*$

    Handler:

    • Redirection - Regular Expression: ^/blogs/(.*)files/(.*) to Substitution: /blogs/wp-content/blogs.php?file=$2

    2 - Rule Type: Complex:
    Rule:

    • Regular Expression: ^/blogs/([_0-9a-zA-Z-]+)/(wp-.*|.*\.php(\?.*|))$ AND
    • Not ( File Exists, Match any file, disabled all the other checkboxes )

    Handler: Redirection, 2 lines:

    • Type Internal, Regular Expression: ^/blogs/([_0-9a-zA-Z-]+)/(wp-.*)$ to Substitution: /blogs/$2
    • Type Internal, Regular Expression: ^/blogs/([_0-9a-zA-Z-]+)/(.*\.php(\?.*|))$ to Substitution: /blogs/$2

    3 - Rule Type: Regular Expression:
    Rule:

    • Regular Expression: ^/blogs/(.*)\.php(\?.*|)$

    Handler:

    • FastCGI, Information source: PHP Interpreter. All options left as default.

    4 - Rule Type: Complex
    Rule:

    • Regular Expression: ^/blogs(.*)$ AND
    • NOT ( File Exists, Match any file, disabled all the other checkboxes )

    Handler:

    • Redirection: Internal, Regular Expression: ^/blogs/(.*)$ to Substitution: /blogs/index.php

    Notes:
    This is for a WPMU installation in the subfolder "/blogs/". Adjust accordingly for your own installation.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags