Apache Archives - Ian Carnaghan

How to redirect your whole website using 301 redirect within the .htaccess file

In your Document root open the .htaccess file if present otherwise create a .htaccess file Once the file is open edit the contents of the...

Mar 22 · 13 sec read >

How to Ban an IP Address using .htaccess

If you do not want a certain person/IP Address to access your website you can add the following code...

Mar 22 · 12 sec read >

How to create a 301 redirect to redirect a non www URL to a www URL using the .htaccess file

Create a .htaccess file within your web directory where all your website files are located Add the following code to it...

Mar 22 · 16 sec read >

How to force your website to use https instead of http via the .htaccess file

Did you recently install a SSL Certificate for your domain and need to force access to your website via https instead of http? This...

Mar 22 · 15 sec read >