<form action="options-permalink.php" method="post">
<?php wp_nonce_field( 'update-permalink' ); ?>
<label for="rules"><?php _e( 'Rewrite rules:' ); ?></label><br />
<textarea rows="18" class="large-text readonly"
name="rules" id="rules" readonly="readonly"
aria-describedby="iis-description-b"
><?php echo esc_textarea( $wp_rewrite->iis7_url_rewrite_rules( true ) ); ?></textarea>
/* translators: %s: web.config */
__( 'If you temporarily make your site’s root directory writable to generate the %s file automatically, do not forget to revert the permissions after the file has been created.' ),
'<code>web.config</code>'
<?php endif; // End if 'web.config' exists. ?>
<?php endif; // End if $_POST['submit'] && ! $writable. ?>
<?php if ( $permalink_structure && ! $using_index_permalinks && ! $writable && $htaccess_update_required ) : ?>
<p id="htaccess-description">
/* translators: 1: .htaccess, 2: Documentation URL, 3: Ctrl + A, 4: ⌘ + A */
__( '<strong>Error:</strong> Your %1$s file is not <a href="%2$s">writable</a>, so updating it automatically was not possible. These are the mod_rewrite rules you should have in your %1$s file. Click in the field and press %3$s (or %4$s on Mac) to select all.' ),
'<code>.htaccess</code>',
__( 'https://developer.wordpress.org/advanced-administration/server/file-permissions/' ),
<form action="options-permalink.php" method="post">
<?php wp_nonce_field( 'update-permalink' ); ?>
<label for="rules"><?php _e( 'Rewrite rules:' ); ?></label><br />
<textarea rows="8" class="large-text readonly"
name="rules" id="rules" readonly="readonly"
aria-describedby="htaccess-description"
><?php echo esc_textarea( $wp_rewrite->mod_rewrite_rules() ); ?></textarea>
<?php endif; // End if ! $writable && $htaccess_update_required. ?>
<?php endif; // End if $iis7_permalinks. ?>
<?php endif; // End if ! is_multisite(). ?>
<?php require_once ABSPATH . 'wp-admin/admin-footer.php'; ?>