Welcome to WebmasterWorld Guest from 18.104.22.168
I have a folder on my domain that I no longer use (its empty), but that a lot of people have bookmarked, search engines point to, etc etc. Everything in that folder has been moved to a different folder (but not in the same structure). I want to use .htaccess to redirect all traffic from the old folder to the new one, such that no matter what is the original target url, everyone is redirected to the index file of the new folder.
There were lots of subdirectories in old folder, individual jpg files indexed by google, and so on and so forth. I want it to work so that no matter what was trying to be accessed under the old folder or its subdirectories, the person is always sent to newfolder.
I know it can be done with a .htaccess file... I had it working until my hosting provider screwed stuff up and now I don't remember the code :( Please help
ErrorDocument 404 http://www.domain.com/newfolder
Is the simplest way to do it.
There are others but this'll do it in the simplest manner placed in the oldfolder directory.
If your old directory structure had any relevance to the new directory structure or if it had keywords etc. in either the path or filename then we can adapt the above to point to a search page on your site with the keyword as the search term ensuring that relevant content is displayed rather than a plain index page.