Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted February 5, 200817 yr In my error log is lot of such logs: [Tue Feb 05 21:07:54 2008] [error] [client xx.xxx.xxx.xxx] File does not exist: /path/mydomain.com/root/subdomain_which_doesn't exist When a visitor types to address bar this: www.mydomain.com/subdomain_which_doesn't_exist he will get 404 error Is there way how can I redirect all unknow addresses to main page via .htaccess? www.mydomain.com/subdomain_which_doesn't exist --->>redirect to--->> www.mydomain.com :)
February 6, 200817 yr www.mydomain.com/subdomain_which_doesn't exist --->>redirect to--->> www.mydomain.com :) You can add something like:Redirect permanent /subdomain_which_doesn't/ http://wwww.mydomain.com or ErrorDocument 404 http://wwww.mydomain.com this will redirect any "404 pages" (pages not found) to your main domain URL HTH
Archived
This topic is now archived and is closed to further replies.