Options configuration panel Version: 3.0 Author: AskApache Author URI: http://www.askapache.com/ */ /* == Installation == 1. Upload askapaches-rewriterules-viewer.zip to the /wp-content/plugins/ directory 2. Unzip into its own folder /wp-content/plugins/askapaches-rewriterules-viewer/askapaches-rewriterules-viewer.php 3. Activate the plugin through the 'Plugins' menu in WordPress by clicking "AskApache RewriteRules Viewer" 4. Go to your Options Panel and open the "AA RewriteRules" submenu. */ /* /--------------------------------------------------------------------\ | | | License: GPL | | | | AskApache RewriteRules Viewer - View Wordpress Rewrites | | Copyright (C) 2008, AskApache, www.askapache.com | | All rights reserved. | | | | This program is free software; you can redistribute it and/or | | modify it under the terms of the GNU General Public License | | as published by the Free Software Foundation; either version 2 | | of the License, or (at your option) any later version. | | | | This program is distributed in the hope that it will be useful, | | but WITHOUT ANY WARRANTY; without even the implied warranty of | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | | GNU General Public License for more details. | | | | You should have received a copy of the GNU General Public License | | along with this program; if not, write to the | | Free Software Foundation, Inc. | | 51 Franklin Street, Fifth Floor | | Boston, MA 02110-1301, USA | | | \--------------------------------------------------------------------/ */ ?> rewrite_rules(); $home_path = get_home_path(); $hta=$home_path . '.htaccess'; $aa_perm_str=get_option('permalink_structure'); ob_start(); $htas=aa_gett_file($hta); $htal=ob_get_clean(); $aa_rl=0; foreach ($aa_rws as $i => $url){ $aa_r.="$i == $url\n"; $aa_rl++; } // status and debug info ob_start(); echo '
';
	if ( !$wp_rewrite->using_permalinks() ) echo "> Not using permalinks\n";
	else echo "> Permalink: $aa_perm_str\n";
	if (!((!file_exists( $hta ) && is_writable( $home_path ) ) || is_writable( $hta ) ) ) echo "> No .htaccess file found or not writable\n";
    else echo "> Writable .htaccess file found\n";
	if (! got_mod_rewrite() )echo "> mod_rewrite not found\n";
    else echo "> mod_rewrite found\n";
	if ( !$wp_rewrite->using_index_permalinks() ) echo "> Not using pathinfo style index permalinks\n";
	else echo "> Using pathinfo style index permalinks\n";
	if (!$wp_rewrite->using_mod_rewrite_permalinks() ) echo "> Not using mod_rewrite permalinks";
    else echo "> Using mod_rewrite permalinks";
    echo '
'; $aa_status=ob_get_clean(); // rewrites ob_start(); echo '

'. $aa_RW['plugin_data']['Name'].' ' . $aa_RW['plugin_data']['Version'] . '

'; ?>
WordPress Generated .htaccess Rules


All WordPress RewriteRules


Full Contents of your .htaccess file (Go Edit)

'.$aa_RW['plugin_data']['Title'].' '.$aa_RW['plugin_data']['Version'] . ' by '.$aa_RW['plugin_data']['Author'].'    |  Google 404 SEO Plugin - .htaccess examples - .htaccess help forum


'; _e($aa_head); _e($aa_pre_rr); } function aa_gett_file($fn){ $lc=0; $handle = @fopen($fn, "r"); if ($handle) { while (!feof($handle)) { $buffer.= fgets($handle); $lc++; } fclose($handle); } echo $lc; return $buffer; } function aa_rw_activate(){ global $aa_RW; $aa_RW['plugin_data']=get_plugin_data(__FILE__); update_option('askapache_rewriterules_viewer',$aa_RW); } function aa_rw_deactivate(){ delete_option('askapache_rewriterules_viewer'); } register_activation_hook(__FILE__, 'aa_rw_activate'); register_deactivation_hook(__FILE__, 'aa_rw_deactivate'); add_action('admin_menu', 'aa_rewriterules_viewer_options_setup'); ?>