Page is a not externally linkable
johnnyDoe - 3:25 pm on Oct 2, 2009 (gmt 0)
mydomain.com (first site) Now I would like that everytime someone access that folder or any content inside that, from mydomain.com, it will be redirected to a 404 Not Available Page. So that folder will only be visible when accessing the my2domain.com that is connected to that folder, sharing one hosting account with mydomain.com Here is what I done. rewriteengine on This redirect every one who is trying to visit mydomain.com/site to an 404 html page. But the problem is, that if you trying to direct link an image like: mydomain.com/site/image.jpg (or) it shows the second site! So I need that every files accessed this way will redirect the user to a 404 error page. So the site inside that folder will only be available from the second domain. :) Hope you know what I mean.
Hi. Here's what I am trying to do. I have a folder inside my hosting account that is used by a second domain. So...
mydomain.com/site/ (second site) (connected to: my2domain.com)
I have this .htaccess inside the /site/ folder:
rewritecond %{HTTP_HOST} ^www.mydomain.com$ [OR]
rewritecond %{HTTP_HOST} ^mydomain.com$
rewriterule ^$ "http\:\/\/mydomain\.com\/site/404/404.html" [R=301,L]
mydomain.com/site/index.html
Thanks in advance.