I recently decided to redirect my main website to my photography section, to make the photography section effectively the main website. I therefore have the following in my index.php file in the root...
<?php Header( "Location: http://notails.com/photography" ); ?>
The odd thing is, if I try to browse to http://notails.com/photography/admin which is a password protected folder, I get redirected to http://notails.com/photography. If I go to the index.php file in the root and comment out that line, then try to browse to the admin page I am able to. I don't understand why a bit of PHP in a file in one folder is redirecting me from another folder! Any ideas?
As an aside, I'd be happy for someone to tell me how to do this redirect in my htaccess file instead of in the index.php file. I looked into it but I could find instructions on lots of things except this specific thing (redirect from the 'root' to a subfolder of the site)