Others
By Staff
By Staff
How to Fix Errors, Create Friendly URL, Page Redirect, etc
Consequences of Using Nulled Software
It is a no-brainer that the use of nulled scripts or downloading software from sources other than the original website of that software, will put you straightforward under the risk of being hacked, because you will not know what types of manipulation has been made to this particular script or software by the shady source from where it's been downloaded. We do use some of the advanced software and antivirus programs in our shared and business hosting platforms to combat the effects of the nulled scripts that get uploaded to our servers each day, such as BitNinja which provides realtime scanning and quarantine of files that contain malware, and CageFS which isolates every single account in the shared server in its own virtual environment, this way if user X account gets hacked and malware was uploaded, it will not spread to the rest of the server and it will not affect other users. Despite this, there are still a lot of consequences for using nulled and pirated software, some of these include but not limited to: Hacking: Getting hacked due to a backdoor exploit being put in the nulled script. If you need to remember one thing from this article, it should be this: Nulled scripts can greatly compromise the security of your website. Hackers are able to do whatever they want with a nulled product, and this often means inserting malicious code — spammy links, redirects to dubious websites, a backdoor that grants unauthorized access to your data, or malware that could steal confidential information or even crash your entire site. The possibilities are virtually endless, and not in a good way. Plus, good luck finding these issues yourself if you opt for a nulled product. While malware scans can detect some harmful code, there’s always a chance you’ll miss something crucial among the files. Hackers know how to disguise malware in such a way that it likely won’t be detected, and you may not realize the damage until it’s too late. Spreading Malware: Infecting other clean files with malware, for example, you may have a well established and successful WordPress site, and one day you decide to install a nulled plugin or theme, but you aren't aware that a malware has been hidden in it, so once you upload and activate it, you will execute that malware and it spreads to the other clean plugins and files in your hosting account. Dropping SEO and Blacklisting: Using nulled scripts results in sites being hacked > which results in malware code being injected into these sites > which results in this code being executed in the browsers of the visitors > resulting in users reporting the site > eventually search engines and web browsers flag your domain as risky and possible banning it from being accessed ... You get the picture now? No Support and No Updates: When you use a nulled script, you will be missing out on support and immediate updates for it. What if the developer releases an urgent security fix to this script, but you don’t get the memo until a few weeks later? Out-of-date extensions are a big attack vector for WordPress sites, so you’re leaving your site open to unnecessary risk if you’re not able to promptly apply new updates. The above are just some examples of general consequences of using nulled scripts. With that been said, we will now walk you through the consequences of uploading nulled and pirated software into our shared or business hosting plans. The first starting point, is that you should understand that by using nulled or pirated scripts, you are in a gross violation of the general Terms of Service (Section 7) of our agreement with you, which can lead to permanently banning you from any further use of the service without compensation or refunds! From a technical perspective, when you upload a nulled a malware-containing script to one of our shared or business plans, our antivirus software may block the files of this script and quarantine them, effectively breaking the functionality of this script. This cannot be prevented and no exceptions will be made. Once we detect that some of the files that you upload to the hosting account are infected, they will immediately be blocked and quarantined, and you may be hit with a warning notice to remove these files, to which your full cooperation will be expected. In some cases, and if we feel that your actions have put the servers in great endangerment, your account will get immediately suspended or terminated permanently and without any prior notice or compensations. Lastly, we would like to emphasize that the services we offer, are made available to help you achieve success in your projects, so we expect you to maintain responsible use of the service offered to you.
How to create a user-friendly URL using htaccess?
If your website is using long URL like example.com/files/folder/sitemap.html, you can change it into "example.com/sitemap" in .htaccess Modify this line according to your needs and then add this code to your .htaccess file. RewriteEngine on RewriteRule ^sitemap/$ /files/folder/sitemap.html [L]
How to Force HTTPS via htaccess
As you may know, modern web browsers nowadays will display a prominent warning if the user is connecting to a non-secure website. Moreover, this warning will still be shown even if the webpage is secured with valid SSL and HTTPS, but some content is being served via HTTP. To fix these issues, and to redirect all requests to your website to be served via HTTPS, you can simply put the code illustrated below in the .htaccess file in the root folder of your domain. The .htaccess file lives in the root of your website's directory, but you can also put it in a subdirectory, wherein this case, all links under this subdirectory will follow that .htaccess file rules. The .htaccess file is also a hidden file by default, so first, you need to make sure hidden files are visible in the files list. How to unhide the .htaccess file: From cPanel File Manager, edit the settings to show hidden files: Note: if you can't see the .htaccess file after making hidden files visible, it means it does not exist, so simply just create it following these steps (make sure to name it exactly as in the picture, with the dot before it, just like this: .htaccess After making the .htaccess file visible or creating it, click the right mouse button and choose Edit from the menu to open it with the editor: Now place this code at the top of the file: RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] Of course, first of all, and before you redirect traffic to HTTPS, you need to make sure you have a valid and trusted SSL certificate already installed on the domain you will be redirecting to HTTPS (if you ordered a shared or business plan from us, then you should have an SSL automatically installed on your domain, shortly after it is pointed to our name servers).
How to redirect a page to another page or website using htaccess?
If a page on your website no longer exists and you want to redirect it to the new page, or else, redirect old website links to the new website, then you can use the .htaccess file for redirection without waiting. The .htaccess lives in the root of your website's directory, but you can also put it in a subdirectory, wherein this case, all links under this subdirectory will follow that .htaccess file rules. The .htaccess is a hidden file, so first, from the cPanel File Manager, edit the settings to show hidden files: After making the htaccess file visible, now open and edit it: Redirecting all URLs: If you changed your website domain, you can then use the following code to redirect all URLs on your site to the new site. Redirect 301 / https://example.com/ Redirecting a single URL: Using the following code, you will be able to redirect a specific page to another one. Redirect /path/to/old/file/old.html http://www.example.com/new/file/new.html Redirect non-existing pages to a specific location: The following code will allow you to redirect any request for a non-existing page, to your index.php file (or any index file) Options +SymLinksIfOwnerMatch RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] Forcing HTTPS: To force requests from HTTP to HTTPS, follow this guide: How to Force HTTPS via htaccess Forcing www in the URL: RewriteEngine On RewriteCond %{HTTP_HOST} ^example.com RewriteRule (.*) http://www.example.com/$1 [R=301,L] Forcing non-www in the URL: RewriteEngine On RewriteCond %{HTTP_HOST} ^www.example.com RewriteRule (.*) http://example.com/$1 [R=301,L]
php error: Allowed memory size of x bytes exhausted
If you are getting an error like "Allowed memory size of... in file /directory/folder/yourscript.php", then you can use an .htaccess trick to resolve this problem. If this error does not go away even after you apply this .htaccess code, you should contact us and we will help you. Place this code in your .htaccess file of your main domain and if this error persists even after you have used the code, enter it in a directory where you are receiving an error, such as example.com/directory/folder/.htaccess and place the code in the /directory folder. RLimitMem max