How exactly do I change that?
I tried several times, but each time resulting in some error.
What part of the rewrite.php to I change/delete/overwrite?
In my rewrite.php I see this:
function page_rewrite_rules() {
$uris = get_option(‘page_uris’);
$attachment_uris = get_option(‘page_attachment_uris’);
$rewrite_rules = array();
$page_structure = $this->get_page_permastruct();
if( is_array( $attachment_uris ) ) {
foreach ($attachment_uris as $uri => $pagename) {
$this->add_rewrite_tag(‘%pagename%’, “($uri)”, ‘attachment=’);
$rewrite_rules = array_merge($rewrite_rules, $this->generate_rewrite_rules($page_structure,
EP_PAGES));
}
}
if( is_array( $uris ) ) {
foreach ($uris as $uri => $pagename) {
$this->add_rewrite_tag(‘%pagename%’, “($uri)”, ‘pagename=’);
$rewrite_rules = array_merge($rewrite_rules, $this->generate_rewrite_rules($page_structure, EP_PAGES));
}
}
return $rewrite_rules;
}