Prohibiting access to wp-config.php improves site security. You are encouraged to refer to this information to maintain your website. Put the following code in the “.htaccess” file. <files wp-config.php> order allow,deny deny from all </files>
Monthly Archives: August 2022
Hiding php.ini information improves site security. You are encouraged to refer to this information to maintain your website. Description in the ‘php.ini’ file. display_errors = off In “.htaccess” files. <Files php.ini> deny from all </Files>
Has SSL been installed on your website? The introduction of SSL is recommended for all websites because of its security and SEO advantages. Full-page SSL is particularly desirable for shopping and crowdfunding websites where personal data and payments are involved. The following code is recommended for full-page SSL. Put this in the “.htaccess” file. ※Be…
If you are building multiple WordPress sites, you face the problem of having to ‘rewrite URLs’ when duplicating them. The following code is recommended to solve this problem before it happens. Please describe it in the theme’s ‘functions.php’ file. /* Description in functions.php */ add_shortcode(‘url’, ‘shortcode_url’); function shortcode_url() { return get_bloginfo(‘url’); } add_shortcode(‘tdir’, ‘tmp_dir’); function…