| | |||||
| ||||||||
| Web Hosting Discussion Hosting topics including DNS, control panels, servers, choosing a host, support. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Member Join Date: Jan 2005
Posts: 30
![]() | Domain parked 404 page redirect help Hi, I have 2 domains e.g. www.mydomain.com and www.mydomain.biz and I have the www.mydomain.biz parked on www.mydomain.com ????: NamePros.com http://www.namepros.com/web-hosting-discussion/70944-domain-parked-404-page-redirect-help.html I have 404 redirect pages on www.mydomain.com but how do i get it to work for www.mydomain.biz? this is the code i have used on the dotcom domain. <HEAD> <META HTTP-EQUIV="Refresh" CONTENT="1;URL=http://www.mydomain.com"> </HEAD> Thank you for visiting mydomain.Com <br><br> This page no longer exsists, please visit out homepage and tell us what you would like to see on our homepage. <br><br> Thank you <p><p> ---------------------------------------------------------------------- <br> Please Wait while we forward you there.......... <P>If this does not work for any reason use the link below: <P><A HREF="index.htm">http://www.mydomain.com</A> <!-- --> Is the above code okay or is something wrong with it. thanks does something need to go in the htaccess file? thanks
Last edited by neoone; 02-19-2005 at 07:09 AM.
Reason: title edit
|
| |
| | #2 (permalink) |
| NamePros Member Join Date: Feb 2004 Location: Europe
Posts: 86
![]() | If the biz domain is parked on the com, the same 404 page will display. If you want to use the full relative URL for each domain, use something like <!--#echo var="HTTP_HOST" --> in your 404 page. You also need to add a line to .htaccess file something like: ErrorDocument 404 /notfound.html |
| |
| | THREAD STARTER #3 (permalink) |
| NamePros Member Join Date: Jan 2005
Posts: 30
![]() | thanks Thanks for your reply. I am adding the 404 code in the cpanel in the 404 page bit but it isn't appearing. I have been told by the host the IE has a requirement for the page to be bigger then 15KB? IS that true? thanks |
| |
| | #4 (permalink) |
| Senior Member Join Date: Mar 2003 Location: Nashville
Posts: 1,888
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Add this to your .htaccess ErrorDocument 404 http://yourdomainname.ext It will work for all names parked. Example: www.615.biz/asddg www.nashvilletennessee.net/dfgth
Last edited by JMJ; 02-25-2005 at 01:13 AM.
|
| |
| | #6 (permalink) |
| Senior Member Join Date: Mar 2003 Location: Nashville
Posts: 1,888
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | If you do the above there's no need for a 404 page since noone will ever see it. But otherwise yes there is a file size limit from what I remember but I've been doing the above for several years now. Before I learned the above I always just put my index.html code in the 404.html |
| |
| | #8 (permalink) |
| Senior Member Join Date: Mar 2003 Location: Nashville
Posts: 1,888
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | If you exceed your bandwidth thats a error document setup via your host generally. I would assume there's no way around that one considering you are exceeding your alotment so your account is actually in suspension status.
Last edited by JMJ; 02-25-2005 at 02:53 PM.
|
| |
| | THREAD STARTER #9 (permalink) |
| NamePros Member Join Date: Jan 2005
Posts: 30
![]() | Thanks. Its just really annoying i am 35mb over this month and there are only three days left. thanks anyway ![]() Is there a way if you have say www.site1.com/prod.php?12 and you want that to redirect to www.site2.com/prod.php?12 but automatically becuase i have lots of pgaes as e.g. prod.php?14 , prod.php?15 thanks |
| |