edit .htaccess file

How to create or edit .htaccess file in cPanel

The .htaccess file contains several directives (instructions) that guide the server how to behave in certain scenarios and directly control your your website functions. There are some common directives like redirects and rewriting URLs that can be found in .htaccess file. There are many scripts and content management systems such as WordPress, Joomla and Magento […]

Read More
Redirect HTTP to HTTPS

How to Redirect HTTP Requests to HTTPS with .htaccess

Google is now considering SSL Certificate as a ranking signal among all other factors. So this is ideal to have a HTTPS encryption on your website. If you have purchased and installed SSL Certificate, you should redirect your website HTTP requests to HTTPS so that your website content loads over an encrypted path ( https:// […]

Read More
htaccess

How to enable hotlink protection using .htaccess Code

When an outsider tries to insert any content from your site into another competitor website and eventually consumes your site bandwidth to serve their files, this unethical breach is known as a Hotlink. The Hotlink Protection interface helps in preventing this issue. Hotlink Protection means protection of your static files from being linked directly. By […]

Read More
htaccess

How to create custom 404 page using .htaccess

Very often we see an error report on our browser regarding 404 Not Found. Now a days most of the websites are using a beautifully styled custom error pages. You can easily set a custom error page with link back to your home page or other important pages using .htaccess. Let’s learn how to create […]

Read More
htaccess

How to create SEO Friendly URL using .htaccess

So far we’ve learned that .htaccess can easily be used to make some tweaks over Apache Web Server’s configuration. Now we’re going to learn that how can we create SEO Friendly URL using .htaccess. How to create SEO Friendly URL using .htaccess STEP 1: Login to your cPanel Account. Navigate to File Manage under Files […]

Read More
htaccess

How to create 301 redirection using .htaccess

.htaccess is a configuration file to use on Apache Web Servers. Whenever a directory contains a .htaccess file, Apache Web Server loads & execute configurations written on the .htaccess. These .htaccess files can be used to bypass or alter configurations loaded by the Apache Web Server to enable/disable additional functionalities offered by Apache Web Server. […]

Read More
force SSL using .htaccess file

How to force SSL using .htaccess file

Security has become one of the most important concerns on the Web. Very often we skip visiting a Web Page just because it doesn’t have a SSL Cerificate. And most of the internet users do not share any of their credentials like email address with the Websites without a SSL. Here we’re going to show […]

Read More

Remove page extensions using .htaccess

Creating a SEO Friendly URL has become much more easier now a days. Sometimes, developers don’t want to show their page extensions to the visitors which is also preferred for creating SEO Friendly URL. Such as, the URL ‘yourdomain.com/products.html‘ to display as ‘yourdomain.com/products‘ on browser’s address bar. Some like the way it looks, others believe […]

Read More