I am attempting to rewrite Word Press web addresses using mod_rewrite during my .htaccess file within the following ways:

http://blog.com/content/themes/twentyeleven/style.css

to

http://blog.com/wp-content/themes/twentyeleven/style.css

and

http://blog.com/inc/css/admin-bar.css?ver=20110622

to

http://blog.com/wp-includes/css/admin-bar.css?ver=20110622

and

http://blog.com/admin/post.php?post=1&action=edit

to

http://blog.com/wp-admin/post.php?post=1&action=edit

I am attempting to hide the truth that this site is applying Word Press, and all sorts of links happen to be rewritten quickly using PHP. However want the server to rewrite the hyperlinks to the right Word Press ones as above.

Just in case it will help, I have prepended personal files (during my php.ini file) towards the Wordpress index.php file which calls the doctor_start() function after which appended the next file:

<?php
$html = ob_get_contents();
ob_end_clean();
$html = str_replace("wp-content", "content", $html);
$html = str_replace("wp-admin", "admin", $html);
$html = str_replace("wp-includes", "inc", $html);
echo $html; 
?>

Many people may question why I wish to hide the truth that we are using Word Press. You will find a lot of reasons (security being one of these) but that is not necessarily the purpose for this question.

What code can one increase my .htaccess file that will allow me to rewrite the web addresses but keeping the right query strings for example ?ver=20110622 or ?publish=1&action=edit

The [QSA] flag will keep the query string when spinning the URL. Example:

RewriteRule ^content/(.*?) wp-content/$1 [QSA]