Tag: htaccess

Allow IP bypass htaccess password with Apache

Allow IP bypass htaccess password with Apache

Here is a very quick tip on how to protect your whole site with htaccess password but only allow certain IP. This is very usefull when you are working on a development server and you want only your team to access the site.

Password Protect WordPress Attachments (files)

Password Protect WordPress Attachments (files)

You might have some sections of your Wordpress site that are only accessible for your Wordpress user. Pretty easy to protect the page or post in Wordpress for only the registered user but what about the attachments of the post/page (files, images)?

301 redirect with htaccess for new domain in WordPress

301 redirect with htaccess for new domain in WordPress

I have been struggling lately for a really simple task: change a domain name for an already online site and do a 301 redirect for all pages to the new domain. Basically the domain is pointing to the same directory, I added it as an aliases to point to the old domain. After doing all […]