Only display mod_rewrite rules if a permalink structure is set.

git-svn-id: http://svn.automattic.com/wordpress/trunk@501 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
emc3 2003-10-30 15:03:30 +00:00
parent 7a1cd62048
commit 44365a46d5
1 changed files with 12 additions and 0 deletions

View File

@ -91,6 +91,9 @@ default:
<input type="submit" name="Submit" value="Update">
</p>
</form>
<?php
if ($permalink_structure) {
?>
<p>Using the permalink structure value you currently have, <code><?php echo $permalink_structure; ?></code>, these are the mod_rewrite rules you should have in your <code>.htaccess</code> file.</p>
<?php
$site_root = str_replace('http://', '', trim(get_settings('siteurl')));
@ -136,6 +139,15 @@ for ($i = 0; $i < count($tokens[0]); ++$i) {
RewriteRule ^<?php echo $match; echo '$ ' . $query ?> [QSA]</code></p>
</div>
<?php
} else {
?>
<p>
You are not currently using customized permalinks. No special mod_rewrite
rules are needed.
</p>
<?php
}
echo "</div>\n";
break;
}