Closed Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Getting 400 Error!

  1. #1
    paidbrowse66 is offline x10Hosting Member paidbrowse66 is an unknown quantity at this point
    Join Date
    Aug 2010
    Posts
    15

    Getting 400 Error!

    I have registered a .com domain and .net domain for my website and added the .com domain as a parked domain. But after that, when I access my website, I am getting a HTTP 400 Error!
    I tried other browsers, no use! Why do this happen? My account is on boru sever! Is it a problem of server?

    ---------- Post added at 01:49 AM ---------- Previous post was at 01:47 AM ----------

    Since my website is not completed yet, It should display " Sorry! The website is down for maintenance! Please check later!"

  2. #2
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,633

    Re: Getting 400 Error!

    What software are you running on your site?
    Nothing is always absolutely so.

  3. #3
    paidbrowse66 is offline x10Hosting Member paidbrowse66 is an unknown quantity at this point
    Join Date
    Aug 2010
    Posts
    15

    Re: Getting 400 Error!

    I'm using PHP only. Also, I don't use MySQL.

    ---------- Post added at 04:23 AM ---------- Previous post was at 02:02 AM ----------

    Why no reply?

  4. #4
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,633

    Re: Getting 400 Error!

    What software are you running? A CMS? Your own script?

    EDIT/ADD:

    Listing your .htaccess might help.
    Last edited by descalzo; 01-23-2011 at 10:38 PM.
    Nothing is always absolutely so.

  5. #5
    paidbrowse66 is offline x10Hosting Member paidbrowse66 is an unknown quantity at this point
    Join Date
    Aug 2010
    Posts
    15

    Re: Getting 400 Error!

    Oh! Thank you! .htaccess was corrupted!
    RewriteEngine on
    ErrorDocument 404 /errorpages/404.php
    ErrorDocument 400 /errorpages/400.php
    ErrorDocument 401 /errorpages/401.php
    ErrorDocument 403 /errorpages/403.php

    directoryIndex index.phpRewriteCond %{HTTP_HOST} ^paidbrowse.co.cc$ [OR]
    RewriteCond %{HTTP_HOST} ^www.paidbrowse.co.cc$
    RewriteRule ^/?$ "http\:\/\/www\.paidbrowse\.com" [R=301,L]
    was there!
    There was no space after index.php
    I changed it to:
    ErrorDocument 404 /errorpages/404.php
    ErrorDocument 400 /errorpages/400.php
    ErrorDocument 401 /errorpages/401.php
    ErrorDocument 403 /errorpages/403.php

    directoryIndex index.php
    Everything is fine now! Thanks a lot!
    What software are you running? A CMS? Your own script?
    I'm using my own script! I am a beginner in PHP.

    ---------- Post added at 10:38 AM ---------- Previous post was at 07:12 AM ----------

    Just asking, But why the corrupted .htaccess generated 400 errors? It should have generated 500 errors I think!

  6. #6
    Anna's Avatar
    Anna is online now I am just me Anna is a name known to allAnna is a name known to all
    Join Date
    Aug 2007
    Location
    Sweden
    Posts
    6,569

    Re: Getting 400 Error!

    the .com listed for your account loads fine for me, showing an under construction message
    Do you have trouble reaching your site?
    Check here first: News and Announcements


    Don't forget that x10hosting has an irc server as well. Come and join the fun
    server: irc.x10hosting.com, main channel: #x10hosting
    There's a lot helpful users there if need help building your site

  7. #7
    paidbrowse66 is offline x10Hosting Member paidbrowse66 is an unknown quantity at this point
    Join Date
    Aug 2010
    Posts
    15

    Re: Getting 400 Error!

    Quote Originally Posted by Anna View Post
    the .com listed for your account loads fine for me, showing an under construction message
    The website is OK now!
    I already said it in my previous post!
    I am asking why the corrupted .htaccess file generated a 400 error? I think it should be considered as an internal error and should generate a 500 error! please correct me if I am wrong!

  8. #8
    Anna's Avatar
    Anna is online now I am just me Anna is a name known to allAnna is a name known to all
    Join Date
    Aug 2007
    Location
    Sweden
    Posts
    6,569

    Re: Getting 400 Error!

    corrupt .htaccess would normally be a 500 error yes

    Though seeing that your .htaccess had this on same line
    directoryIndex index.phpRewriteCond %{HTTP_HOST} ^paidbrowse.co.cc$ [OR]
    The server would have been looking for a file named "index.phpRewriteCond" which it did not find.
    Last edited by Anna; 01-24-2011 at 05:00 AM.
    Do you have trouble reaching your site?
    Check here first: News and Announcements


    Don't forget that x10hosting has an irc server as well. Come and join the fun
    server: irc.x10hosting.com, main channel: #x10hosting
    There's a lot helpful users there if need help building your site

  9. #9
    paidbrowse66 is offline x10Hosting Member paidbrowse66 is an unknown quantity at this point
    Join Date
    Aug 2010
    Posts
    15

    Re: Getting 400 Error!

    Actually, this
    RewriteCond %{HTTP_HOST} ^paidbrowse.co.cc$ [OR]
    was not added by me!
    It was added when I used the addon domain redirection in the cPanel. The cPanel just appended the code to the .htaccess!
    If you can configure the cPanel to add a new line and then the code, it would be great for those who are beginners like me![COLOR="Silver"]
    Last edited by paidbrowse66; 01-24-2011 at 05:07 AM. Reason: It was posted twice! Deleted one!

  10. #10
    Anna's Avatar
    Anna is online now I am just me Anna is a name known to allAnna is a name known to all
    Join Date
    Aug 2007
    Location
    Sweden
    Posts
    6,569

    Re: Getting 400 Error!

    I'll see what I can dig up regarding configuring that.
    Do you have trouble reaching your site?
    Check here first: News and Announcements


    Don't forget that x10hosting has an irc server as well. Come and join the fun
    server: irc.x10hosting.com, main channel: #x10hosting
    There's a lot helpful users there if need help building your site

Closed Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 3
    Last Post: 02-16-2011, 09:42 AM
  2. Replies: 1
    Last Post: 08-20-2010, 03:26 AM
  3. Replies: 4
    Last Post: 12-22-2009, 04:39 PM
  4. Replies: 1
    Last Post: 03-03-2008, 10:58 AM
  5. Replies: 1
    Last Post: 09-01-2007, 02:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers