Getting 400 Error!

Status
Not open for further replies.

paidbrowse66

New Member
Messages
15
Reaction score
0
Points
0
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!"
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
What software are you running on your site?
 

paidbrowse66

New Member
Messages
15
Reaction score
0
Points
0
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?
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
What software are you running? A CMS? Your own script?

EDIT/ADD:

Listing your .htaccess might help.
 
Last edited:

paidbrowse66

New Member
Messages
15
Reaction score
0
Points
0
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!
 

Anna

I am just me
Staff member
Messages
11,752
Reaction score
582
Points
113
the .com listed for your account loads fine for me, showing an under construction message
 

paidbrowse66

New Member
Messages
15
Reaction score
0
Points
0
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!
 

Anna

I am just me
Staff member
Messages
11,752
Reaction score
582
Points
113
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:

paidbrowse66

New Member
Messages
15
Reaction score
0
Points
0
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!
 
Last edited:

Anna

I am just me
Staff member
Messages
11,752
Reaction score
582
Points
113
I'll see what I can dig up regarding configuring that.
 

paidbrowse66

New Member
Messages
15
Reaction score
0
Points
0
I'll see what I can dig up regarding configuring that.
Thanks for your quick reply! :) :)

---------- Post added at 11:14 AM ---------- Previous post was at 11:11 AM ----------

The problem is now solved! Thanks for quick support!
 
Status
Not open for further replies.
Top