Forum Moderators: phranque
I've looked for a similar problem, but no luck so far.
I'm trying to use .htaccess to redirect a few links to pages within a different domain.
Unless the file exists on MY server, Apache generates a 404 instead of redirecting. If the file does exist on my server, the redirect works fine.
eg:
Redirect 301 /search_e.html [aaa.com...]
It will only redirect to aaa.com if search_e.html is found on MY server.
PLEASE HELP!!!
justa - I want to delete the pages in question. Adding a redirect to them doesn't suit the purpose.
bobriggs - I do have the custom 404. I tried moving the redirect up and also tried removing the ErrorDocuments altogether. No luck. None with the trailing slash either.
Again, the redirect works when the document I'm trying to direct away from is present. It's not displayed, the redirect just goes through. It's when I physically delete the document I'm trying to direct away from that I get the 404. Weird...
Thanks for all of the suggestions folks, they were helpful!