![]() |
|
| |||||||
| Notices |
| CPanel - Control Panel All Cpanel questions and issues. |
![]() |
| | LinkBack | Thread Tools |
|
#1
| ||||
| ||||
|
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 ![]() Want a banner like above? Contact me here with details. |
|
#2
| ||||
| ||||
|
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 ...
__________________ NEW - Dating Websites/Custom Features FREE Blue Voda Website Design Tips Blue Voda Designer|LadyEye/Designer My Portfolio of Blue Voda Websites Free Webmaster Resources Blue Voda Chat Join Today, it's Free |
|
#3
| ||||
| ||||
|
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 ![]() Want a banner like above? Contact me here with details. |
|
#4
| ||||
| ||||
| Quote:
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
__________________ NEW - Dating Websites/Custom Features FREE Blue Voda Website Design Tips Blue Voda Designer|LadyEye/Designer My Portfolio of Blue Voda Websites Free Webmaster Resources Blue Voda Chat Join Today, it's Free |
|
#5
| ||||
| ||||
|
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 ![]() Want a banner like above? Contact me here with details. |
|
#6
| ||||
| ||||
| Quote:
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
__________________ NEW - Dating Websites/Custom Features FREE Blue Voda Website Design Tips Blue Voda Designer|LadyEye/Designer My Portfolio of Blue Voda Websites Free Webmaster Resources Blue Voda Chat Join Today, it's Free |
|
#7
| ||||
| ||||
|
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 ![]() Want a banner like above? Contact me here with details. |
|
#8
| ||||
| ||||
|
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 ....
__________________ NEW - Dating Websites/Custom Features FREE Blue Voda Website Design Tips Blue Voda Designer|LadyEye/Designer My Portfolio of Blue Voda Websites Free Webmaster Resources Blue Voda Chat Join Today, it's Free |
|
#9
| ||||
| ||||
|
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 ![]() Want a banner like above? Contact me here with details. |
|
#10
| ||||
| ||||
| Quote:
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 ...
__________________ NEW - Dating Websites/Custom Features FREE Blue Voda Website Design Tips Blue Voda Designer|LadyEye/Designer My Portfolio of Blue Voda Websites Free Webmaster Resources Blue Voda Chat Join Today, it's Free |
|
#11
| ||||
| ||||
|
Thanks Ladyeye, it was just me being a bit thick. I can do it now. lol
__________________ Voda ![]() Want a banner like above? Contact me here with details. |
|
#12
| ||||
| ||||
| Quote:
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
__________________ NEW - Dating Websites/Custom Features FREE Blue Voda Website Design Tips Blue Voda Designer|LadyEye/Designer My Portfolio of Blue Voda Websites Free Webmaster Resources Blue Voda Chat Join Today, it's Free |