It's quite common for us to put in progress sites at www.domain.com/dev/
and then once the client has signed off the site to move it to the top level www.domain.com
, what we like is to be able to put a .htaccess file in the top level so that once we've moved the site out of /dev if the client accidently goes to www.domain.com/dev/apage.php
that they be redirected to www.domain.com/apage.php
, but only if www.domain.com/dev/apage.php
doesn't exist.
Sometimes the dev folder will be called various other things, and ideally we don't want to have to edit the .htaccess file to match the folder name.
Thanks for any help.