June 6, 201313 yr I'd like to detect any link on any sub-directories and sub-directory files and redirect them to the equivilent address on a new URL.However there are some file on the old URL (about 860) that need to stay on the old URL and still be accessed.I can forward any URL to the equivilent quite easily using htaccess (apache) but I don't know how to do the exceptions.I can do exceptions via PHP using the file_exists() function if that helps but I don't know how to send all incoming addresses to the index first for a check and then to the correct destination.Happy for a solution using htaccess / mod_rewrite on it's own or with a little help with PHP.
Create an account or sign in to comment