Cannot load a website in public_html

trucnv89

New member
Joined
Aug 5, 2011
Messages
2
I have got a problem when i create a folder in public_html and i upload a source code of another website to this folder, i.e /public_html/new_folder. A problem is that a website in new_folder is not work although i have configured correctly.
This error message is:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request


Does Direct Admin not allow me to upload another website to new_folder in public_html?
Can everybody help me? And what i can do to fix this?
Thanks a lots.
 
DirectAdmin doesn't care. The problem is mostly likely in the way the code is written. For example, some content management system sites (Wordpress comes to mind) won't run except at the exact domain/url for which they were written.

This thread is most certainly not a How-To guide, and has been moved.

Jeff
 
public_html is actually symlink to domains/yourdomain.com/public_html/
so make sure that you have public_html folder under domains/yourdomain.com/

or maybe error caused by .htaccess
 
Thanks for reply my question.Please permit me ask some question. I have a .htaccess file, this is:
<Limit GET POST>
order deny,allow
deny from all
allow from all

</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
DirectoryIndex index.php index.html
AuthName tamlanads.com
Options +FollowSymLinks
RewriteEngine on

RewriteCond %{HTTP_HOST} ^mydomain.com
RewriteRule (.*) http://www.mydomain.com/new_folder/$1 [R=301,L]
Options +FollowSymLinks
RewriteEngine on

RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -s
RewriteRule ^.*$ - [L]
RewriteRule ^([A-Za-z_-]+).html$ index.php?req=$1
RewriteRule ^([A-Za-z_-]+)/(.*).html$ index.php?req=$1&req1=$2
RewriteRule ^([A-Za-z-_]+)/(.*)/(.*).html$ index.php?req=$1&req1=$2&req2=$3
RewriteRule ^([A-Za-z-_]+)/(.*)/(.*)/(.*).html$ index.php?req=$1&req1=$2&req2=$3&req3=$4
ErrorDocument 500 http://www.mydomain.com/new_folder/500.shtml
ErrorDocument 400 http://www.mydomain.com/new_folder
ErrorDocument 401 http://www.mydomain.com/new_folder
ErrorDocument 403 http://www.mydomain.com/new_folder
ErrorDocument 404 http://www.mydomain.com/new_folder

This file is place in /public_html/new_folder. Source code i use in public_html is Wordpress and in new_folder i use hand code. Must i have edit .htaccess file in public_html,too? That file is:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress
 
Back
Top