Login

How to remove .php, .html extensions with .htaccess

You will learn How to remove .php, .html extensions with .htaccess.

Generally you will need to have user-friendly URLs to your site. As opposed to https://www.Instance.Com/index.Html you will need to have https://www.Instance.Com/ The second URL seems a good deal better. Also, from the search engine optimization factor of view is better to don’t use report extensions.

What is an .htaccess file

An .htaccess file is a simple ASCII file that you create with a text editor like Notepad or TextEdit. The file lets the server know what configuration changes to make on a per-directory basis.

Please note that .htaccess is the full name of the file. It isn’t file.htaccess, it’s simply .htaccess.

.htaccess files affect the directory in which they are placed in and all children (sub-directories). For example if there is one .htaccess file located in your root directory of yoursite.com, it would affect yoursite.com/content/yoursite.com/content/images/, and so on…

It is important to remember that this can be bypassed. If you don’t want certain .htaccess commands to affect a specific directory, place a new .htaccess file within the directory you don’t want to be affected with the changes, and remove the specific command(s) from the new file.

With an .htaccess file you can:

  • Redirect the user to different page
  • Password protect a specific directory
  • Block users by IP
  • Preventing hot-linking of your images
  • Rewrite URLs
  • Specify your own Error Documents

The steps to remove file extensions are:

  1. Login to your cPanel account.
  2. Go to File Manager – in the FILES Section
  3. In the File Manager go to the Settings button on the top right corner.
  4. On the Preferences window that will appear check the Show Hidden Files (dotfiles) option. Click Save button to apply the settings.
  5. Now navigate to the .htaccess file. If the file doesn’t exist you will need to create it.
  6. Click the Edit button from the File Manager top menu.

Add the below lines to the .htaccess file. Click the Save Changes button and then the Close button.

To remove .php extension with .htacess

#remove php file extension-e.g. https://example.com/file.php will become https://example.com/file
RewriteEngine on 
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*)$ $1.php [NC,L]

Now the Apache web server will remove .php

To remove .html extension use:
#remove html file extension-e.g. https://example.com/file.html will become https://example.com/file
RewriteEngine on 
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^(.*)$ $1.html [NC,L]
Now its all set! you can now Remove files extention with .htacess

How to get WHMCS License For Free

Hello guys,

Today, i will like to explain how to get unlimited whmcs license for free. We all know the purpose and features of whmcs as it stand for (WEB HOSTING MANAGEMENT COMPLETE SOLUTIONS). It’s not new as most of us know how much this plugin cost in market, This make us go extra mile and make sure we offer 100% Free whmcs billing software, This only require your opt in for any of our cheapest web hosting reseller packages with this you will be able to create unlimited cPanels on reseller account and we also offer free whmcs domain reseller module with cheapest prices for all our domain names. What are you waiting for, feel free to get in-touch with us if you need any assistance.

 

Kind Regards!

Reliable Web Hosting Reseller provider That Offer Unlimited Accounts On cPanel

Hello guys,

Recently, cPanel Inc announced their new pricing systems and this shock many hosting providers globally. It’s great as we already sealed an agreement with this company in providing unlimited cPanel accounts in lifetime.

It’s a great suprise as this mostly affected mostly resellers in the market, you don’t need to worry anymore about this as we are still offering real unlimited cPanel accounts on our Web Hosting Reseller Packages and we can also help you in migrating from your existing provider, free of charge with no downtime. This sound amazing and we provide unlimited Diskspace and bandwidth including Unmetered SSL certificates. We offer all this for fair and affordable prices.  Why not opt-in as we even offer free WHMCS Billing software for 100% FREE.

Feel free to ask our sales department any of your inquires about this, as we also offer premium web hosting support on whatsapp(+2348144033349) with average response of 5mins.

 

How To Fix cPanel Error IP Address Has Changed

Hello guys, many users had severally been complaining about IP Address changed error on Cpanel. Today, i’m going to provide a cure and permanent solution to it as it’s seems to be the simplest way on NET.

Major records, shows that this is due to Dynamic IP system being adopted by some ISP’s (Internet Service Providers).

One very easy way to avoid this error is change you ISP. Yes, its that simple. You could also request for a static IP address from your current ISP.

However, there is a more technical method to resolve this and for some of us who are not so tech savvy, I will stick to the first option if I were you. The one that we are going to talk about today is

ALSO CHECK: How to reset WordPress admin password from frontend and backends

How to Resolve Through cPanel Proxy.

  • Navigate to the Subdomains menu in cPanel and create a subdomain cpanel.

    To access Webmail, create corresponding subdomain, too:

    dynamic_proxy

  • Download cpanelproxy Script

  • Go to File Manager, click on the recently created public_html/cpanel (public_html/webmail), click Upload and select the file on your computer:dynamic_proxy1

  • Go back to the folder and click on the Extract button to extract folder. From now on, you are to use http://cpanel.yourdomain.com and http://webmail.yourdomain.com to access the control panels areas.

YOU MAY ALSO WANT TO KNOW: How to Move WordPress from a Subfolder to the Root Directory

With this, you have successfully set and free to go!.

How can I enable Mod-Rewrite Module?

How can I enable Mod-Rewrite Module?

How can I enable Mod-Rewrite Module?

Sometimes, developers find it difficult to Enable or disable Apache Mod-Rewrite Module in cPanel. By default, this module always set to enable, but in some case it may had been disabled.

ALSO CHECK: How to force download media files on wordpress

You can follow the below steps to enable it back;
  1.  Login to your cPanel
  2. Click on file manager
  3.  Enable hidden files to show, from “Setting” at the top-right sidebar
  4. open your “public_html folder, or the other folder that contain your website contents
  5.  Locate & Edit your .htaccess file,
  6. Copy RewriteEngine On
    RewriteCond %{SERVER_PORT} 80
    RewriteRule ^(.*)$ https://yourdomain.com/$1 [R=301,L]
    to you htaccess file
  7. Depends on what you want to rewrite, but commonly, developers use this to force https to load
  8.  Change “yourdomain.com” from that code to your website domain link, and the Save it.

ALSO CHECK:  How to Install a free SSL certificate in cPanel using LetsEncrypt

How can I enable Mod-Rewrite Module?

How can I enable Mod-Rewrite Module?

How can I enable Mod-Rewrite Module?

Sometimes, developers find it difficult to Enable or disable Apache Mod-Rewrite Module in cPanel. By default, this module always set to enable, but in some case it may had been disabled.

ALSO CHECK: How to force download media files on wordpress

You can follow the below steps to enable it back;
  1.  Login to your cPanel
  2. Click on file manager
  3.  Enable hidden files to show, from “Setting” at the top-right sidebar
  4. open your “public_html folder, or the other folder that contain your website contents
  5.  Locate & Edit your .htaccess file,
  6. Copy RewriteEngine On
    RewriteCond %{SERVER_PORT} 80
    RewriteRule ^(.*)$ https://yourdomain.com/$1 [R=301,L]
    to you htaccess file
  7. Depends on what you want to rewrite, but commonly, developers use this to force https to load
  8.  Change “yourdomain.com” from that code to your website domain link, and the Save it.

ALSO CHECK:  How to Install a free SSL certificate in cPanel using LetsEncrypt

How to edit php.ini on shared servers from ftps

How to edit php.ini on shared servers from ftps

With the help of PHP Selector implemented on our shared servers, you can easily modify basic PHP settings in your cPanel > section Software/Services Select PHP Versionmenu.
However, advanced PHP settings are missing from PHP Selector tool, and they need to be manually configured in the php.ini file. Feel free to download php.ini for different PHP versions below in the Attachments section at the end of the guide.

When all updates are completed, make sure that you rename the file to php.ini. In order for the php.ini to work add Lsapi_phpini directive.

To find out the current PHP version and configuration, refer to the below steps.

How to check PHP version and configuration

There are two ways to check PHP version set for the account. By default, we have PHP 5.6 set on our shared servers.
To check what PHP version is selected for your account go to cPanel Software section > Select PHP versionmenu:

You will see the current PHP version above PHP extensions:



Another way to check PHP version is PHPinfo() function, commonly used to check the current state of PHP configuration. It can also be used for debugging purposes as it contains all EGPCS (Environment, GET, POST, Cookie, Server) data.

To run the function, follow the steps below:

for cPanel Basic theme
for cPanel Retro theme

for cPanel Basic theme:

1. Log into your cPanel account, go to Files section > File Manager menu:

2. Navigate to public_html directory, click on New Fileand create a phpinfo.php file:

3. Find the newly created file in the list and click on Code Editor:

4. Add the lines of the code provided below to the file and click on Save Changes:

<?php
phpinfo();
?>

5. To see the detailed information about PHP configuration of your account, open http://yourdomain.com/phpinfo.php link in your browser, replacing yourdomain.com with your main domain name.

NOTE: For security reasons, do not forget to delete the file once you check all the necessary information.

for cPanel Retro theme:

1. Log into your cPanel account, go to the section Files File Manager menu:

2. Navigate to the public_html directory, click on New Fileand create a phpinfo.php file:



3.Find the newly created file in the list and click on Code Editor:

4. Add the lines of the code provided below to the file and click on Save Changes:


<?php
phpinfo();
?> 

5. To see the detailed information about PHP configuration of your account, open http://yourdomain.com/phpinfo.php link in your browser, replacing yourdomain.com with your main domain name.

NOTE: 
For security reasons, do not forget to delete the file once you check all the necessary information