Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function my_htaccess_contents( $rules )
- {
- $my_content = <<<EOD
- n # BEGIN My Added Content
- # Protect wpconfig.php
- <Files wp-config.php>
- Order Allow,Deny
- Deny from all
- </Files>
- # END My Added Contentn
- EOD;
- return $my_content . $rules;
- }
- add_filter('mod_rewrite_rules', 'my_htaccess_contents');
- function my_htaccess_contents( $rules )
- {
- $my_content = <<<EOD
- n # BEGIN My Added Content
- # Protect wpconfig.php
- <Files wp-config.php>
- Order Allow,Deny
- Deny from all
- </Files>
- # END My Added Contentn
- EOD;
- return $my_content . $rules;
- }
- add_filter('mod_rewrite_rules', 'my_htaccess_contents');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement