Apache web server

How to Redirect HTTP to HTTPS using htaccess

To redirect a website from HTTP to HTTPS, you can use the following code in .htaccess file If you want

Apache web server

How to block Bad Bots (User Agents) using .htaccess

Some bots can cause a high load on servers as they index too many pages or get into some never-ending

Apache web server

How to deny access to a file using .htaccess?

You may need to deny access to specific files on your web server for security reasons. On the Apache web

How to Add Expires Headers in WordPress

What is Expires Headers Expires headers are a type of HTTP header that indicates how long until cached copies of

Redirect Subdomain to Subdirectory

Redirect Subdomain to Subdirectory

To redirect a subdomain to a subdirectory, use following .htaccess code. Redirect Subdirectory to Subdomain See htaccess

React/Angular Application showing 404 error on refresh

React/Angular Application showing 404 error on refresh

On Apache server, React Application works fine, but if you refresh a page, it shows 404 error. This is because

Redirect a folder to another

Redirect a folder to another

To redirect a folder to another using .htaccess, create Or Or if new folder is on another domain, you can

Password Protect Site using htaccess

Password Protect Site using htaccess

To password protect a web site or a sub folder using .htaccess, create a .htaccess file in the folder. Add

Redirect site to HTTPS excluding a folder

Redirect site to HTTPS excluding a folder

On a web site, customer need to redirect all pages to HTTPS, but want to keep files in one of

Redirect site from www to non-www

It is better to make web site available with one URL. Many sites work with both wwww and non-www (naked

Disable PHP on a folder

Disable PHP on a folder

A web site had vlunerability, all allowed hacker to upload backdoor script to “uploads” folder used by the script. As

htaccess

htaccess

Limit Access Using htaccess Apache Limit access to a url Disable PHP on a folder How to protect .git folder