Quantcast
Channel: My Science Is Better » Apache
Browsing latest articles
Browse All 2 View Live

Redirect entire site to another domain, excluding folder

A site i’ve built for a campaign needed to be redirected to another site as the campaign expired, but one folder in the domain needed still to be accessible. htaccess to the rescue: RewriteEngine on...

View Article


Password protect a folder in Apache using .htaccess

mkdir -p /home/secure/ htpasswd -c /home/secure/apasswords developer chown apache:apache /home/secure/apasswords chmod 0660 /home/secure/apasswords then in your htaccess add these: AuthType Basic...

View Article

Browsing latest articles
Browse All 2 View Live