If a visitor try to enter to a subdomain that not exist (for Example: http://sdfasdf.wqerqdf.dfs.mysite.com ), How i can redirect he to a special address? ErrorDocument 404 /yourpagehere.html does not work for subdomain
Hi, Ur q's it much to general to have a specific answer to it. But here is an idea - U can set server to redirect ALL subdomains to a default location using a sort of ASTERIX setting. This can be achived via editing of .HTACCESS root file or via ur control panel.
put this on your httpd.conf ErrorDocument 404 /errorfolder/404.html Alias /errorfolder/ /path/where/the/file/located/