The MU forums have moved to WordPress.org

Please explain htaccess (3 posts)

  1. stutley
    Member
    Posted 18 years ago #

    Hi all,

    I'm just curious to understand what this bit in my htaccess actually does?


    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule . - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*.php)$ $2 [L]
    RewriteRule . index.php [L]

    :)

  2. lunabyte
    Member
    Posted 18 years ago #

    In a nutshell, it's verifying if the request is for a valid directory or file first, and if it is it passes through.

    If not, it sends it to the appropriate MU file to translate the request into an MU generated page.

  3. stutley
    Member
    Posted 18 years ago #

    Didn't get that much more clever, but thanks :D

About this Topic