Follow @BPSPro

Custom Code Help and FAQ – How To Use Custom Code, Adding Custom Code To AutoMagic

4 Comments RSS Site Feed Author: AITpro Admin
Published: February 27, 2012
Updated: February 27, 2012

Custom Code is a new feature in BPS Pro 5.1.5.

How Custom Code Works

B-Core Custom Code: This new feature allows you to permanently save any custom .htaccess code to your WP Database permanently and automatically have that custom code be created in your Root .htaccess file when you click the Create secure.htaccess File AutoMagic button. If your website requires php.ini handler code in your Root .htaccess file and BPS Pro is unable to detect your Web Host because you have a Private Name Server, you are using CloudFlare, you are using Pipe DNS or some other service that is blocking your true Web Host Name Servers and DNS information then you can permanently save your php.ini handler code with B-Core Custom Code. Add custom .htaccess plugin fixes code for personal plugins that you are using. These plugin fixes are saved permanently and automatically created in your Root .htaccess file with you click the Create secure.htaccess File AutoMagic button.

Help Information found in the Add Custom htaccess Code To AutoMagic Read Me button

Add ONLY valid .htaccess code into these text boxes. If you want to add regular text then you need to add a pound sign # in front of the text to comment it out. If you do not do this then the next time you use AutoMagic and activate BulletProof Mode for your Root folder your website WILL crash.

Custom Code and AutoMagic
Any custom .htaccess code that you save here will be saved to your WP Database permanently and automatically be created in your Root .htaccess file when you click the Create secure.htaccess File AutoMagic button.

CUSTOM CODE TOP: Add php.ini handler code and / or miscellaneous custom code here
The CUSTOM CODE TOP text area should really ONLY be used for php.ini handler code if BPS is unable to detect your Web Host. You can add your php.ini handler code and miscellaneous custom .htaccess code in the CUSTOM CODE TOP text area together, but it is recommended that you ONLY use this text area for your php.ini handler code if your website requires php.ini handler code in your Root .htaccess file. BPS Pro is unable to detect your Web Host when you have a Private Name Server, you are using CloudFlare, you are using Pipe DNS or some other service that is blocking your true Web Host Name Servers and DNS information. The CUSTOM CODE BOTTOM text area should be used for miscellaneous custom .htaccess code.

CUSTOM CODE PLUGIN FIXES: Add ONLY personal plugin fixes code here
This text area is for plugin fixes that are specific to your website. BPS already has some plugin fixes included in the Root .htaccess file. Adding additional plugin fixes for your personal plugins on your website goes in this text area. For each plugin fix that you add above RewriteRule . – [S=12] you will need to increase the S= number by one. For Example: if you added 2 plugin fixes above the Adminer plugin fix they would be .htaccess Skip rules #13 and #14 – RewriteRule . – [S=13] and RewriteRule . – [S=14]. If you added a third Skip rule above #13 and #14 it would be Skip rule #15 – RewriteRule . – [S=15].

CUSTOM CODE BOTTOM: Add miscellaneous custom .htaccess code here 
You can save any miscellaneous custom .htaccess code here as long as it is valid .htaccess code or if it is just plain text then you will need to comment it out with a pound sign # in front of the text.

BPS Pro Video Tutorial links can be found in the Help & FAQ pages

Skip to toolbar