I am looking for some help in my .htaccess file.
In short, I have a bunch of content in the www.myserver.com/forum/ subdirectory (this directory is not my choice and cannot be changed), which includes both the forum ( myserver.com/forum/forum ) and the wiki ( myserver.com/forum/wiki ) and this is obviously not a perfect layout. I do not own myserver.com, and there is content that is not mine, although I have full access to the entire server.
I also have a domain name www.mydomain.com , which I want to redirect and disguise in such a way that if the user goes to mydomain.com/<something> , they will be shown the contents from myserver.com/forum/<something> , while displayed mydomain.com/<something> in the address bar.
One more thing I would like to see, although this is not vital, for 404 generated by someone typing in mydomain.com/somethingThatDoesNotExist , should redirect to mydomain.com/404.php instead of myserver.com default 404.
I tried several different approaches and searched extensively on the Internet for the last day or so - I’m sure that the answer even here is on SO somewhere, but all the manuals / examples that I tried worked, and I feel like gathering in circles.
Thank you very much in advance.
EDIT: And I know for sure that .htaceess is included.
source share