Ticket #13115: 13115-v2.patch
File 13115-v2.patch, 890 bytes (added by , 15 years ago) |
---|
-
rewrite.php
1564 1564 if ( empty($this->permalink_structure) ) 1565 1565 return $rewrite; 1566 1566 1567 // robots.txt 1568 $robots_rewrite = array('robots\.txt$' => $this->index . '?robots=1'); 1569 1567 // robots.txt - this is only needed if wordpress is installed at the root of a domain 1568 $home_path = parse_url(home_url()); 1569 $robots_rewrite = ( !isset($home_path['path']) || $home_path['path'] == '/' ) ? array('robots\.txt$' => $this->index . '?robots=1') : array(); 1570 1570 1571 //Default Feed rules - These are require to allow for the direct access files to work with permalink structure starting with %category% 1571 1572 $default_feeds = array( '.*wp-atom.php$' => $this->index . '?feed=atom', 1572 1573 '.*wp-rdf.php$' => $this->index . '?feed=rdf',