Knowledge Base

How to Redirect a Page or Website Using htaccess

If a page on your website no longer exists and you want to redirect it to a new page or website, you can use the dot htaccess file to redirect visitors. Redirect from a page/directory to another domain or the main domain: Redirect from a specific page to a domain: RewriteEngine on Redirect 301 /mypage.html http://example.com Redirect from one page to another page: #Redirect from a page/directory to another page Redirect 301 /oldpage.html /newpage.html Whenever you open a URL such as example.com/oldpage.html, it will redirect you to example.com/newpage.html.

Related: domain, redirects


July 5, 2023

How to Reset the PHP Version to the Default Version in cPanel

If you want to reset the PHP version to the default version, follow these instructions: Log in to your cPanel account. In the Software section, click on MultiPHP Manager. Scroll down to the bottom of the page. Select your domain from the left side of the screen. You can view the PHP Version from the drop-down menu on the right. Please, select the appropriate PHP version from it and click on Apply. It will take a few seconds, after which your PHP version will reset to the default version.


July 5, 2023

Fix PHP Error: Allowed Memory Size of X Bytes Exhausted

If you encounter an error like “Allowed memory size of… in file /directory/folder/yourscript.php“, consider using an .htaccess file to address the issue. Should the error persist even after implementing the .htaccess solution, please reach out to us. We’re committed to assisting you. Insert the following code into the .htaccess file at the root of your main domain. If the issue remains unresolved, place the code in the specific directory where the error appears, for instance, example.com/directory/folder/.htaccess. Incorporate this line into your .htaccess file: RLimitMem max

Related: error, htaccess


July 4, 2023

How to Edit “User Level Email Filter” in cPanel

Log in to your cPanel account. In the Email section, click on Email Filters. Under Filters by Users, you can see all your existing email accounts. Click on Manage Filters next to the appropriate one. Under Current Filters, click on Edit next to the appropriate filter. Make the desired changes to the filter. Click on Save.

Related: email


June 19, 2023

How to Restrict Access to Directories by IP Address

To secure your admin area from hackers, you should only allow access to your admin directory from selected IP addresses. You can create a dot htaccess file in the directory where you want to restrict access to specific IP addresses. For example, if you have a WordPress blog installed on your main directory and you log in via example.com/wp-admin, you should create an htaccess file in /wp-admin/.htaccess and put the following code into it. Please, don’t forget to replace the allowed IP address with your IP address. order deny, allow deny from all allow from YOUR-IP-ADDRESS-HERE Replace the Your-IP-Address-Here text with your IP address. You can test this by accessing the wp-admin directory from another IP address, not mentioned in your htaccess file.

Related: admin, WordPress


June 17, 2023