moldboy 0 Report post Posted December 4, 2005 Okay, I'm not sure this is the right place for this message, but I was wondering if I can have diffrent error messages for diffrent subdomains, so mysite.trap17.com/a_file_that_isnt_real, would yield one error page, where as secondpage.mysite.trap17.com/a_file_that_isn't_real would yeild a diffrent 404 page? Share this post Link to post Share on other sites
Amezis 0 Report post Posted December 4, 2005 I think that's possible, but the cPanel tool won't work.Make a file called .htaccess in a text editor (such as Notepad or Dreamweaver), and insert this code: ErrorDocument 404 /maybeafolderhere/theerrorfile.extAnd I think you can have different .htaccess files for different subdomains, but I'm not sure. Oh by the way, I forgot something. You can changed "404" in the code to another error, for instance "500" (Internal Server Error). Share this post Link to post Share on other sites
jlhaslip 4 Report post Posted December 4, 2005 Moldboy, Here is a php script that does the error page for different error codes.http://forums.xisto.com/no_longer_exists/Not sure if you are allowed multiple .htaccess files in a subdomain, but why not try it and see?Let us know if it works. Share this post Link to post Share on other sites
electriic ink 1 Report post Posted December 4, 2005 Yes, I am 99.99% sure that it is possible. To create the error page for the ordinary domain, edit: /home/user/public_html/.htaccess And for the subdomain: /home/user/public_html/subdomain_name/.htaccess Using the code Amezis provided. Share this post Link to post Share on other sites
moldboy 0 Report post Posted December 4, 2005 Okay, thanks, that worked fine, and for the time being the example can be found here,http://forums.xisto.com/no_longer_exists/http://forums.xisto.com/no_longer_exists/ Share this post Link to post Share on other sites