Web Hosting Vodahost    

Home Take The Royal Tour! Order Now Features Prices
Go Back   Web Hosting > VodaHost Web Hosting Support > CPanel - Control Panel

Notices

CPanel - Control Panel All Cpanel questions and issues.

Reply
 
LinkBack Thread Tools
  #1  
Old 04-02-2007, 05:37 PM
Mook25's Avatar
Brigadier General
 
Join Date: Oct 2005
Location: UK
Posts: 1,447
Default Custom 404 for addon domain???

I know how to create a custom 404 error message for the main domain but how do i do this for an addon domain? Is it possible?
__________________
Voda Picks >> Prices| Tutorials | BV Download | FAQ | Your First Webpage


Want a banner like above? Contact me here with details.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old 04-02-2007, 05:57 PM
LadyEye's Avatar
General & Forum Moderator
 
Join Date: Jun 2006
Location: Canada
Posts: 9,909
Send a message via MSN to LadyEye
Default Re: Custom 404 for addon domain???

Hi Mook

Good question ...

What you can do, although there may be another way ... is create the 404 page just like you know how, then move the file from one directory to the other, I think you just move it into the cgi bin of your other directory, (sub-domains, add on domains, etc.) but then it will work.

Hope this helps ...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old 04-02-2007, 06:14 PM
Mook25's Avatar
Brigadier General
 
Join Date: Oct 2005
Location: UK
Posts: 1,447
Default Re: Custom 404 for addon domain???

Hi Ladyeye. Thanks for the quick response. I'm creating the 404 within cpanel. Do i just copy the code within this to a text document and save as 404.html, then upload to the cgi folder?
__________________
Voda Picks >> Prices| Tutorials | BV Download | FAQ | Your First Webpage


Want a banner like above? Contact me here with details.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old 04-02-2007, 06:17 PM
LadyEye's Avatar
General & Forum Moderator
 
Join Date: Jun 2006
Location: Canada
Posts: 9,909
Send a message via MSN to LadyEye
Default Re: Custom 404 for addon domain???

Quote:
Originally Posted by Mook25
Hi Ladyeye. Thanks for the quick response. I'm creating the 404 within cpanel. Do i just copy the code within this to a text document and save as a .html file then upload to the cgi folder?
Hi Mook

No, actually after you create it, go and find it in your public_html directory, click on the folder, and over on the right side of your screen will be, delete, move, copy etc., so choose copy then click over to your add ons domain folder and it will copy in there, If I remember correctly, it lands in your cgi bin, different from your main domain, but this works ... ... to be sure you did it correctly, just go and type in your add on domains url with a page that doesn't exist and it should show up for you .... I
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old 04-02-2007, 06:25 PM
Mook25's Avatar
Brigadier General
 
Join Date: Oct 2005
Location: UK
Posts: 1,447
Default Re: Custom 404 for addon domain???

Hmmm! Doesn't seem to work for me. I tried both putting the 404 file in the root of the domain and the cgi folder.
__________________
Voda Picks >> Prices| Tutorials | BV Download | FAQ | Your First Webpage


Want a banner like above? Contact me here with details.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old 04-02-2007, 06:38 PM
LadyEye's Avatar
General & Forum Moderator
 
Join Date: Jun 2006
Location: Canada
Posts: 9,909
Send a message via MSN to LadyEye
Default Re: Custom 404 for addon domain???

Quote:
Originally Posted by Mook25
Hmmm! Doesn't seem to work for me. I tried both putting the 404 file in the root of the domain and the cgi folder.

Oh goodness, hmmm .... okay let's start again then ....

You go into the file manager and create a 404 page ...

You then go into the public_html directory, cause this is where the file is kept ... you then click on the file, not the name and the file name will appear on the right upper side of your screen, you then click move this file or copy this file ... it should then come up and say, you must choose where you want to move this file, so on the left again, you navigate yourself into the add on domains directory, cgi bin for that one, and that should be it ....

Close out, and if you go into the add on directory cgi bin, you should see the 404 file there ...

You did do a write up in the text area when you created the 404 file right??

here look at mine

Both of these pages do not exist ... so I'll move them out of here in a minute

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old 04-02-2007, 06:39 PM
Mook25's Avatar
Brigadier General
 
Join Date: Oct 2005
Location: UK
Posts: 1,447
Default Re: Custom 404 for addon domain???

It's ok, i found another way around it i just created a .htaccess file. If anybody else needs to know how to do this. follow these instructions.


Create a file called ".htaccess" in your addon domain folder. When doing so, just make an empty text file in Notepad or whatever, and make sure you start the filename with a dot — it's vital. This means that it is no longer a text file — the file suffix will be .htaccess, so it doesn't have a filename of its own.

Now you need to point this file to your custom page. Add this line to the .htaccess file (edit it with a text editor like Notepad):


Code:
ErrorDocument 404 http://www.example.com/404page.php
Make sure it's all on one line, and change that address to the full address of your newly created page.

The address you put for the file needs to be the path from the parent site in order for it to work.

For example: ErrorDocument 404 http://www.addondomain.com/404page.php will not work
but ErrorDocument 404 http://www.parentdomain.com/addondirectory/404page.php does work

And that should do it.

Thanks for your help on this one. I'm usually ok on this sort of thing but guess the time off work is getting to me now. lol
__________________
Voda Picks >> Prices| Tutorials | BV Download | FAQ | Your First Webpage


Want a banner like above? Contact me here with details.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old 04-02-2007, 06:41 PM
LadyEye's Avatar
General & Forum Moderator
 
Join Date: Jun 2006
Location: Canada
Posts: 9,909
Send a message via MSN to LadyEye
Default Re: Custom 404 for addon domain???

Well Mook

The path of the 404 does not need to have the main domains name in it to work.

You simply create a 404 page and move it from one directory to the other ... this works ... too simple ...

less coding, just moving the file around from directory to directory ...

But glad you got it working ...

I am going to remove those links I made for you now ....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old 04-02-2007, 06:43 PM
Mook25's Avatar
Brigadier General
 
Join Date: Oct 2005
Location: UK
Posts: 1,447
Default Re: Custom 404 for addon domain???

It probably is but for some reason with me, simple things never work. lol
They're probably that simple that i miss the point all together. Thanks for your help though.
__________________
Voda Picks >> Prices| Tutorials | BV Download | FAQ | Your First Webpage


Want a banner like above? Contact me here with details.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old 04-02-2007, 06:45 PM
LadyEye's Avatar
General & Forum Moderator
 
Join Date: Jun 2006
Location: Canada
Posts: 9,909
Send a message via MSN to LadyEye
Default Re: Custom 404 for addon domain???

Quote:
Originally Posted by Mook25
It probably is but for some reason with me, simple things never work. lol
They're probably that simple that i miss the point all together. Thanks for your help though.

Mook

Just a suggestion for you ... try moving just a file around, firstly so you can be sure you are doing that correctly ....

like make yourself a page, publish it in one directory and then move it to another and see if you can master that ...

I think that is where you may be going wrong ...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old 04-03-2007, 03:33 AM
Mook25's Avatar
Brigadier General
 
Join Date: Oct 2005
Location: UK
Posts: 1,447
Default Re: Custom 404 for addon domain???

Thanks Ladyeye, it was just me being a bit thick. I can do it now. lol
__________________
Voda Picks >> Prices| Tutorials | BV Download | FAQ | Your First Webpage


Want a banner like above? Contact me here with details.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old 04-03-2007, 11:15 PM
LadyEye's Avatar
General & Forum Moderator
 
Join Date: Jun 2006
Location: Canada
Posts: 9,909
Send a message via MSN to LadyEye
Default Re: Custom 404 for addon domain???

Quote:
Originally Posted by Mook25
Thanks Ladyeye, it was just me being a bit thick. I can do it now. lol
hey Mook

Glad you got it, what's that saying "Through Thick & Thin We Always Seem to Win" ... I know what you mean though, it seems it wasn't moving it but it did ... lol
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +1. The time now is 10:57 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC7
2005-2009 VodaHost Web Hosting Your Perfect Web Host - All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139