WordPress.org

Ready to get started?Download WordPress

Forums

How do you view the htaccess rules generated by WP 2 (5 posts)

  1. mrwok
    Member
    Posted 8 years ago #

    How do you view the htaccess rules generated by WP 2

  2. Mark (podz)
    Support Maven
    Posted 8 years ago #

    Login
    Manage > files .. look on the right.

    Or use your ftp client and download the file

  3. mrwok
    Member
    Posted 8 years ago #

    I meant the rules generated by wordpress that are dynamically generated....

    RewriteRule . /index.php

  4. WordPress 2.0 only uses these rules now:

    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php

    i.e. hand everything that isn't a real file or directory off to index.php.

    Before WP2, mod_rewrite would do the work and parse permalinks and then hand them off to WordPress.

    Now, WordPress parses the requested URL itself and displays what's requested.

  5. Lester Chan
    Member
    Posted 8 years ago #

    you can use var_dump($wp_rewrite->rules); to view it.

Topic Closed

This topic has been closed to new replies.

About this Topic