I have just uploaded a site on a sub-domain, In fact on the 3rd Sub-domain. All the 4 site ( 1 Main, and the 3 on SUB) are completely separate from each other.

Now, the site was developed Offline/Local and then uploaded, the site worked great on a local.

For some reason i keep getting "ERROR 500 - INTERNAL SERVER ERROR", where as my other sites are working fine.

If it would have been a server issue, the other sites would have the same problem. I dont ahve limits on Sub-domains, the disk space and bandwidth is also fine.

Can't Understand what could be the issue. Please help. I have attached the screen shot to the post, but not the link. As i am not sure how it works here.

.Htaccess code :

 RewriteEngine On
 #RewriteCond %{REQUEST_FILENAME} !-f
 #RewriteRule ^(.*)$ $1.php?$1=$1 [QSA,L]
 #RewriteRule ^([^\.]+)$ $1.php [NC,L]
 #RewriteRule ^([^\.]+)$ $1.html [NC,L]
 #RewriteRule ^([a-zA-Z]+)/([a-zcA-Z]+)/([0-9]+)/([-0-9a-zA-Z]+)/?$ /$1/$2.php?id=$3 [L]

 php_value max_execution_time 200
 php_value post_max_size 200M
 php_value upload_max_filesize 100M

Error 500


  • what technology you using for site? PHP / wordpress? – Helping Hands Dec 27 '14 at 9:24
  • It's on PHP.... – Manish Laungani Dec 27 '14 at 9:39
  • can you please share .htaccess file code which are in that sub domain root folder? – Helping Hands Dec 27 '14 at 9:41
  • I'm sorry, how do i post the code here? It's all scrambled. I'm new here. – Manish Laungani Dec 27 '14 at 9:46
  • please update question and add . htaccess code in proper format there. In comment not possible to format proper. – Helping Hands Dec 27 '14 at 9:49

First go to : Default htaccess and use that default htaccess code for .htaccess file for your subdomain root.

Also please verify following things :

1 - In apache config , see this option : AllowOverride All [It should be ALL not none]

2 - do you have mod_rewrite enabled

3 - .Htaccess file permission should be 644.

  • Ok, I have changed the code in .htaccss, and the file permission is set to 644. But, no idea how to check for mod_rewrite and apache config – Manish Laungani Dec 27 '14 at 10:24
  • Please create new page and use function <?php phpinfo(); ? and then access that page. it will show you all status. – Helping Hands Dec 27 '14 at 10:27
  • what exactly goes in the code? "<?php phpinfo(); ?" this? within the quotes? – Manish Laungani Dec 27 '14 at 10:36
  • It will give you all php info. all option status of server which are on , which are off and a lot more. – Helping Hands Dec 27 '14 at 10:37
  • yes, but how to use it? – Manish Laungani Dec 27 '14 at 10:40

Start with the apache error log

This page has some further information, such as the default location on windows of the logfiles


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.