hi to all
i have a hosting, but not a domain
i have uploaded to my hosting using ftp in the next way:
in the root:

/apps
/cache
/config
/data
/doc
/lib
/logs
/plugins
/temp
/test
/web
.htaccess
symfony
symfony.bat

also the / directory has a public_html directory

so my root directory is like next:

/apps
/cache
/config
/data
/doc
/lib
/plugins
/temp
/test
/web
/public_html
symfony
symfony.bat

so, i copied the content of /web to /public_html

now public_html looks like this:

/css
/images
/js
/uploads
.htaccess
robots.txt

also, i have modified the projectConfiguration.php (the red sentences)

<?php

require_once
dirname(__FILE__).'/../lib/vendor/symfony/lib/autoload/sfCoreAutoload.class.php';

sfCoreAutoload::register();

class ProjectConfiguration extends sfProjectConfiguration
{
  public function setup()
  {
    // for compatibility / remove and enable only the plugins you want
    $this->enableAllPluginsExcept(array('sfDoctrinePlugin',
'sfCompat10Plugin'));

$this->setWebDir($this->getRootDir().'/public_html');

  }
}

and the .htaccess is the next:

Options +FollowSymLinks +ExecCGI

<IfModule mod_rewrite.c>
  RewriteEngine On

  # uncomment the following line, if you are having trouble
  # getting no_script_name to work
  #RewriteBase /

  # we skip all files with .something
  RewriteCond %{REQUEST_URI} \..+$
  RewriteCond %{REQUEST_URI} !\.html$
  RewriteRule .* - [L]

  # we check if the .html version is here (caching)
  RewriteRule ^$ index.html [QSA]
  RewriteRule ^([^.]+)$ $1.html [QSA]
  RewriteCond %{REQUEST_FILENAME} !-f

  # no, so we redirect to our front web controller
  RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>

Now, when i try to do http://www.myhostingprovider.com/~withoutdomain , the
error message appear:

Not Found

The requested URL /home/withoutdomain/public_html/index.php was not found on
this server.

Additionally, a 404 Not Found error was encountered while trying to use an
ErrorDocument to handle the request.
only when i enter:

http://www.myhostingprovider.com/~withoutdomain/index.php

then my application works, but , when i want to use a link , in other words
when i try to use some of the actions by clicking in some hyperlink , this
error appear:
Not Found

The requested URL /home/withoutdomain/public_html/index.php was not found on
this server.

Additionally, a 404 Not Found error was encountered while trying to use an
ErrorDocument to handle the request.

the only way to use the other actions, or modules is by wrinting:

http://www.myhostingprovider.com/~withoutdomain/index.php/module/action

and it is not good, some body know what to do in order to fix those problems
thanks a lot!.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to