Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter umasse

    (@umasse)

    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.

Viewing 1 replies (of 1 total)