Jul 24, 2008

Diffrent Error Pages - for diffrent subdomains

Free Web Hosting, No Ads > General > Hosted Members Area

free web hosting

Diffrent Error Pages - for diffrent subdomains

moldboy
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?

Reply

Amezis
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:

CODE
ErrorDocument 404 /maybeafolderhere/theerrorfile.ext

And I think you can have different .htaccess files for different subdomains, but I'm not sure. tongue.gif

Oh by the way, I forgot something. You can changed "404" in the code to another error, for instance "500" (Internal Server Error).

Reply

jlhaslip
Moldboy,

Here is a php script that does the error page for different error codes.

http://www.sabrewebdesign.com/support/scripts/errorpages.php

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.


Reply

electriic ink
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.

Reply

moldboy
Okay, thanks, that worked fine, and for the time being the example can be found here,
http://ww.d-gression.trap17.com/fjsdkfjsldf
http://d-gression.trap17.com/dfaasers

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : diffrent error pages diffrent subdomains

  1. Phpbb3 - Error 28 - (5)
  2. Error 28 (on Phpmyadmin) - What does this error message mean? (6)
    I have a shopping cart system on my website. It always worked before, but all of a sudden, when I
    try to access it i get "Got error 28 from storage engine". Has that got something to do with the
    recent problems again, or can someone tell me what this error message means? Thanks. After posting
    this I noticed I cannot get into my PHPAdmin anymore. It gives loads of errors: QUOTE Warning:
    session_write_close() : SQLite: session write query failed: database is full in
    /usr/local/cpanel/base/3rdparty/phpMyAdmin/index.php on line 42 Warning: session_write_close() :
    Fai...
  3. Giving Out Subdomains - (1)
    Okay.. so i was wondering if theres a way to give out subdomains names, without actuly hosting them
    on my cpanel/account such as cheese.have-heart.net or so, if i have my dsn things pointed to
    trap17 and they are installed on trap17 if not.. is there a way to give out subdomains to lets say
    a domain thats with namecheap, because i have have-heart.info i dont use it really, i had it
    pointing to have-heart.net but with the whole trap17 error thing, it unparked and im too lazy to
    park it again(: hope this is not too confusing.....
  4. Page Load Error When Accessing Cpanel - (0)
    Not sure what the issue is. I cannot even load up any of the cpanel's to allow me to put in a
    password. I have tried the link that is located in the Credit System 2.0 I have tried the links
    with subdomain/cpanel I have tried the links with subdomain:2082 All 3 of these just give page
    load errors. Please note : This isn't a "my password doesn't work" thread. This is a "I
    can't even get cpanel to TRY to load" thread. Thanks in advance....
  5. Coppermine Gallery Error - (2)
    Okay.. so i have my gallery set up at photos.chantellepaige.org and everytime i try to access it i
    get this error "Coppermine critical error: Unable to connect to database ! MySQL said: Access
    denied for user 'giselle_copp1'@'localhost' (using password: YES)" how do i change
    the password etc?? or fix the problem??...
  6. Error Code In Subscriptions Page - problems subscribing to topics (5)
    I'm seeing some weird warning message show up at the top of my page when I go into "my
    controls," then load my topic subscriptions page. At the top of the page, the following code appears
    several times: IPB WARNING in_array() : Wrong datatype for second argument (Line: 2711 of
    /sources/action_public/usercp.php) I'm guessing maybe that has something to do with the fact
    I'm having problems subscribing to my topics and posts? Thanks in advance for your help....
  7. 403 Forbidden Error When Accessing My Site - (10)
    umm this is a problem that i have been looking in other topics to try to fix but i can't seem to
    find a answer to what i lookin for. I got my site workin again the other day ok and so i went on to
    see it (so i can make more changes) and when i got there i got this QUOTE Forbidden You
    don't have permission to access / on this server. Additionally, a 403 Forbidden error was
    encountered while trying to use an ErrorDocument to handle the request. Apache/1.3.33 Server at
    www.clansga.trap17.com Port 80 now i looked at everything and i can't seem to find t...
  8. Phpmyadmin Error [resolved] - (7)
    I get this error message each time I attempt to work phpMyAdmin. QUOTE Cannot start session
    without errors, please check errors given in your PHP and/or webserver log file and configure your
    PHP installation properly. Help would be very grateful....
  9. Phpmyadmin Error - Not able to enter PhpMyAdmin (4)
    Currently I try to access my PhpMyAdmin and I get the following error displayed among the screen:
    My PhpMyAdmin worked prior the migration but suddenly stopped working after. I wanted to know if
    anyone else is getting this error also or anyway can help me fix this o.o....
  10. Help With Subdomains And Dns - are Sub-Domains possible with threw the (16)
    well, i searched for the forum for an answer specificly for me and didn't find one, so i was
    wodnering if anyone could help me out with sub-domains. I have a .com domain at 1&1.co.uk, as i saw
    it advertised/suggested in OpaQue's Signature. so. . .first of all, what is DNS? and is that
    relelvent to me at all for this? secondly, i can only forward with my domain using the 1&1 control
    panel, BUT is there a way to edit all that in trap17's control panel? because at the moment all
    the pages of the website go under the same domain and if refreshed is hit then it go...
  11. Mysqli Error - Phpbb3 - (3)
    Ok, my forum (phpbb3) works but sometimes it displays this message CODE General Error SQL ERROR
    [ mysqli ] Can't connect to local MySQL server through socket
    '/var/lib/mysql/mysql.sock' (2) [2002] An sql error occurred while fetching
    this page. Please contact an administrator if this problem persists. This normally happens about
    once a week for about 2 minutes but it is really getting annoying. I installed phpbb3 fine, it
    didn't show any errors. But the main thing is that before this happens normally I can't
    connect...
  12. Some Pages On My Site Won't Even Load.. - (6)
    Ever since today, my site has been working just fine. I'm maintaining the amount of points I
    need, and the server status has been and still is fine. However, a while ago I tried to access my
    site and it wasn't loading. When I loaded the root URL, it worked fine though. I went to the
    file manager and noticed that the file I was trying to previously access was .php, and the index
    file at my root URL was .html. I deleted the index.html file and made a index.php file, then tried
    loading it again. Safari gave me the following message: QUOTE Safari can’t ope...
  13. Add-on / Parked / Subdomains? - (3)
    what's the difference between Add-on / Parked / Subdomains? /sad.gif"
    style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> Is parked just where the
    website isn't being made yet and subdomain is with the subdomainurl.mainsite.extension Add-on
    domains are where i'm confused I tried adding www.gnarfard.com www.vitachoconutriment.com and
    www.ekaiyo.com to my domain but it says they got added as add-on domains but the urls are
    gnarfard.metaknight.com, vitachoconutriment.metaknight.com and ekaiyo.metaknight.com... Are the
    subdomains the same t...
  14. Parse Error: Syntax Error, Unexpected '<' On Line 29 - (11)
    ok when i try and access the page i want, iget the following error: Parse error: syntax error,
    unexpected ' however, my page looks like this: QUOTE // Connects to your Database
    $username = "evolved_creation"; $password = "mypasswordishere"; $hostname =
    "localhost"; $dbh = mysql_connect($hostname, $username, $password) or
    die("Unable to connect to MySQL"); $selected =
    mysql_select_db("evolved_clancreation",$dbh) or die("Could not connect to DB");
    mysql_close($dbh); //checks cookies to make sure they ar...
  15. Keep Getting Socket Error - mail won't send. (3)
    When trying to send email, I keep getting a socket #10061 error. I use the Trap 17 smtp server,
    related to my own domain, which is mail.vlaanderen-flanders.org.uk. This seems to be happening
    regularly lately. Has anyone got any idea why this could be happening? Thanks for any support. ...
  16. Pages Url Set Up Problem - (5)
    ok so... im in cpanel making new pages for my website.. (ending the names in .html and saving them
    as an html document) but every now and then my pages, such as this one
    http://www.have-heart.trap17.com/staff.html will not work if you place the WWW. after the http://
    only if you type in http://have-heart.trap17.com/staff.html is there anyway to fix that?
    without going in to all my pages and changing the navigation for each page?? ps.it happens both
    ways,, somethings i wont be able to acess certain pages if it begins with \
    http://have-heart.trap17.com/...
  17. Email Creation Error - Not receving emails, can't create new account (3)
    Hi, When I try to create an email account in the CPanel, I get this error QUOTE The e-mail
    account xxxxxxxx@ wildcatexotics.com with the login Sorry, you have exceeded the maximum allowed
    email accounts. and password xxxxxxxx with a quota of unlimited megabytes was successfully created.
    Can anybody help me out? And also My default email account is xxxxx@xxxx.com, but when I sent
    myself an email from another account, I didn't receive any. Thank you...
  18. Help: Internet Server Error - (20)
    Hello! I decided to try YaBB as a forum now, just testing....and ... Well first my question is,
    this is in ADDONSCRIPTS, not FANTASTICO, whats the difference? Secondly, about my problem: I was
    in the YaBB admin panel, I got through the Forum Settings, got to Advanced settings, filled out the
    info, and pressed save. The 5000 times I have tried this, I get this: QUOTE Internal Server
    Error The server encountered an internal error or misconfiguration and was unable to complete your
    request. Please contact the server administrator, webmaster@sherwoodinfo.trap1...
  19. Error During Upgrade [resolved] - Xisto tells me to contact Admin (3)
    While trying to upgrade my hosting account (I got an email I was approved), I encountered the
    following: When I clicked on the link in my confirmation email, I was taken to the Xisto menu page,
    where I selected "Upgrade your hosting account". I was then asked to enter my forum username and
    password, and was then taken to the upgrade page, but almost immediately got the message: "There
    were problems creating your account! Please Contact Administrator." Then, underneath, it said:
    "Debug Info", followed by two lines with nothing in between them, and below the two lines ...
  20. Suspended Account Error [resolved] - (12)
    OK, my hosting account was upgraded so my hosting credits were set to 0. I went to stay with my
    sister for a couple of days and when I got back I had -4 hosting credits and my account was
    suspended. I've now got 6 hosting credits. My main site is working but all of the addon
    domains I added go to the Suspended Account Page. What do I do???...
  21. Help! Forum Error Please Reply - (4)
    I'm very sorry for making so many topics, but just now I can't get to my forum because of
    this! QUOTE Fatal error: Cannot redeclare addlinenumbers() (previously declared in
    /home/omega/public_html/Sources/Subs.php:3671) in /home/omega/public_html/Sources/Subs.php on line
    3721 Help me please! (PS: sorry for being so dumb)...
  22. Installing Joomla And Shell Question - i get error when i trayed to install joomla i get some (0)
    i get error when i trayed to install joomla about the default premising check this out i have set
    the file premising to 777 and to 755 and the same problem what to do where to fix this
    http://zam.trap17.com/earn-money/installation/index.php and in my hosting plans i did see shell
    access but i cant it at my cpanel why ??? ---UPDATE--- will i have been able to install joomla
    thanks but i still asking about the shell account double post merged ...
  23. Error - (6)
    there is a problem with my subdoman it keeps coming up with blank everytime i click here
    http://www.street-warz.trap17.com/ it shudnt be coming up blank it should come up with a game login
    plz sort this...
  24. 'page Not Found' Error [resolved] - (8)
    Heyhey, I've been approved this morning for a plan #2 hosting package, so I went to he link in
    my mail. I've filled in all the fields and also filled in my domain: www.ancient-armada.com The
    setup was pretty fast and without problems. After all was set up, I tried to log into the Cpanel by
    IP, but that didn't work... It gave a 'page not found' error. I know for my domain it
    can take up to a few days before it works, but with the IP, I should be able to log into Cpanel,
    right? Thanks in advance...
  25. Error Using Fantastico! - (4)
    Well I've just registered a free hosting account today and first I had a problem logging into my
    cPanel but it's okay now. And now after I logged into my cPanel, when I try to use fantastico I
    get this error: QUOTE Not Found The server was not able to find the document
    (./frontend/rvblue/fantastico/index.php) you requested. Please check the url and try again. You
    might also want to report this error to your webhost. cpaneld/11.2.2 Server at
    www.thedebate.trap17.com so what's the problem? and how can I fix it?...
  26. Free T17 Domains - Do They Support Subdomains? - (4)
    Hi! i have a question about the free domains available, do they support subdomains, like can i
    have sub.site.com for free? I would obviously register site.com first and then how would i get the
    subdomain there? through cpanel maybe?...
  27. Making Custom Error Pages With Cpanel - Not working properly (4)
    I set up the custom error pages using CPanel, but they aren't working properly. I get the
    standard error code. CODE The requested URL was not found on this server. Additionally, a 404
    Not Found error was encountered while trying to use an ErrorDocument to handle the request.
    Plust that little bit on the end. Am I doing something wrong or is it something that needs to be
    handled by an admin?...
  28. Error Trying To Edit File Using Cpanel Filemanager - Can't save any changes (8)
    Okay, I am having trouble saving changes to a .css file using the cpanel filemanager. Basically it
    worked for me a couple of times (trying to edit "compiled.css") but now it just throws this error at
    me every time I click save!! I cannot delete, move, rename or edit the file at all using an
    ftp manager or even the cpanel. I have been forced to take my site offline until I have access to
    update the css... Please help! QUOTE open compiled.css failed: Permission denied at
    cpanel.pl line 444 Carp::croak('open compiled.css failed: Permission denied...
  29. Pages Not Found? - (2)
    Hi all, i'm having trouble finding my webpages, right now its just text and a login doodlie
    thing, but i access my files by visiting the page, so i can't see my changes as they happen Has
    this happen to anyone else, any thoughts, etc?...
  30. Error In Credits [resolved] - (0)
    well after about 80% of posting at the gfx forums i nothest something was wrong about it,i posted
    there about 4 times and just got 1 post,but it doesn't say no post counts,so i wonder why i need
    more than 1 post to get a post count there,?? can some1 explain plz NEVERMIND DELETE THIS POST I
    MISSED READ AGAIN CAUSE THIS DOENS"T SHOW ON THE MAIN PAGE< PLZ CHANGE THAT SO ITS MORE VISIBLE...



Looking for diffrent, error, pages, diffrent, subdomains

Searching Video's for diffrent, error, pages, diffrent, subdomains
advertisement



Diffrent Error Pages - for diffrent subdomains



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE