2012-04-18 83 views
0

我试图安装社交引擎时出现问题。上传所有文件,设置目录权限,但是当我进入我的域名,我得到一个:安装社交引擎时出错

Not Found 

The requested URL /install/install was not found on this server. 

这件事情的根源有关.htaccess文件和安装目录,“原因消除他们我开始安装过程但很长的URL,这样一来:

/install/index.php/install

这件事情,最终会与所有长的URL,而不是短期的人,谷歌使用索引,例如。我的ISP有safe_mode设置关闭,并mod_rewrite的ON,所以我只是有点失去了...

回答

0

的.htaccess:

# $Id: .htaccess 7539 2010-10-04 04:41:38Z john $ 

<IfModule mod_rewrite.c> 
    Options +FollowSymLinks 
    RewriteEngine On 

    # Get rid of index.php 
    RewriteCond %{REQUEST_URI} /index\.php 
    RewriteRule (.*) index.php?rewrite=2 [L,QSA] 

    # Rewrite all directory-looking urls 
    RewriteCond %{REQUEST_URI} /$ 
    RewriteRule (.*) index.php?rewrite=1 [L,QSA] 

    # Try to route missing files 
    RewriteCond %{REQUEST_FILENAME} !-f 
    RewriteCond %{REQUEST_FILENAME} public\/ [OR] 
    RewriteCond %{REQUEST_FILENAME} \.(jpg|gif|png|ico|flv|htm|html|php|css|js)$ 
    RewriteRule . - [L] 

    # If the file doesn't exist, rewrite to index 
    RewriteCond %{REQUEST_FILENAME} !-f 
    RewriteCond %{REQUEST_FILENAME} !-d 
    RewriteRule ^(.*)$ index.php?rewrite=1 [L,QSA] 

</IfModule> 

# sends requests /index.php/path/to/module/ to "index.php" 
# AcceptPathInfo On 

# @todo This may not be effective in some cases 
FileETag Size 
0

对流浪(使用https://box.scotch.io/)运行SocialEngine同样的问题,并通过固定它根据/install/清除.htaccess文件。