Make WordPress Core


Ignore:
Timestamp:
05/22/2006 10:06:06 PM (20 years ago)
Author:
ryan
Message:

Handle robots.txt requests and obey blog_plubic setting.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/rewrite.php

    r3712 r3791  
    697697        }
    698698
     699        // robots.txt
     700        $robots_rewrite = array('robots.txt$' => $this->index . '?robots=1');
     701
    699702        // Post
    700703        $post_rewrite = $this->generate_rewrite_rules($this->permalink_structure, EP_PERMALINK);
     
    731734
    732735        // Put them together.
    733         $this->rules = array_merge($page_rewrite, $root_rewrite, $comments_rewrite, $search_rewrite, $category_rewrite, $author_rewrite, $date_rewrite, $post_rewrite, $this->extra_rules);
     736        $this->rules = array_merge($robots_rewrite, $page_rewrite, $root_rewrite, $comments_rewrite, $search_rewrite, $category_rewrite, $author_rewrite, $date_rewrite, $post_rewrite, $this->extra_rules);
    734737
    735738        do_action('generate_rewrite_rules', array(&$this));
Note: See TracChangeset for help on using the changeset viewer.