document root

hi , sorry for english, i extract the base application in a free domine ,. When i see the file i have the basic folder under / , i setting .htaccass in this way :





# Set document root to be "basic/web"

DocumentRoot "/basic/web"


<Directory "/basic/web">

    # use mod_rewrite for pretty URL support

    RewriteEngine on

    # If a directory or a file exists, use the request directly

    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteCond %{REQUEST_FILENAME} !-d

    # Otherwise forward the request to index.php

    RewriteRule . index.php


    # ...other settings...

</Directory>



but i have 500 error . Why?

Do you have logs?

No this is a page where i upload my application :

myapplication

Well, then I’m afraid I can’t help because it could be too many things.

You can not set a document root in a .htaccess file, see http://httpd.apache.org/docs/current/mod/core.html#documentroot

tanks to my help desk now with this .htaccess :




RewriteEngine On

RewriteRule ^$ basic/web/

RewriteCond %{REQUEST_FILENAME} !-f 

RewriteCond %{REQUEST_FILENAME} !-d 

RewriteRule ^(.*)$ basic/web/$1




All thing work properly …