我在这里托管了我的新网站 http://cvspforcomval.site90.net/这是一个免费的托管网站。问题是我看不到幻灯片中的图片,当我进入导航链接时,出现错误。
我已将默认的 webroot/index.php更改为:
if (!defined('ROOT')) {
define('ROOT', DS.'home'.DS.'a3503999');
}
if (!defined('APP_DIR')) {
define('APP_DIR', 'app');
我的目录是这样的/根/ public_html/<---网络根 .app/ 自由/
我只是想知道使用免费托管网站是否会影响错误。或者我只是错过了一些东西。
<---编辑>在我的共享主机站点中。我以这种方式设置文件夹
/app
/public_html <---webrooot
/lib
我的public_html中有默认的 htaccess,即
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>
我的怀疑是我需要更改我的.htaccess。我还没有解决它
我收到由于锚点而导致的页面未找到错误。您没有使用正确的 ctp 链接。您必须将定位点创建为
$this->Html->link(__'My Page',array('controller'=>'Home','action'=>'name_of_action'));