Debugging 在Aptana Studio中调试

Debugging 在Aptana Studio中调试,debugging,aptana,Debugging,Aptana,我正在Aptana Studio中调试一个Yii应用程序。调试第一个页面可以,但当我尝试访问另一个页面时,它会显示“打开文件时出错:没有这样的文件或目录”。我认为这与htaccess文件(url重写)有关。调试时如何启用htaccess文件 这是我的htaccess文件: # Enabling symbolic links Options +FollowSymLinks -MultiViews <ifmodule mod_headers.c> # Defending aga

我正在Aptana Studio中调试一个Yii应用程序。调试第一个页面可以,但当我尝试访问另一个页面时,它会显示“打开文件时出错:没有这样的文件或目录”。我认为这与htaccess文件(url重写)有关。调试时如何启用htaccess文件

这是我的htaccess文件:

# Enabling symbolic links
Options +FollowSymLinks -MultiViews

<ifmodule mod_headers.c>
    # Defending against clickjacking
    Header always set X-Frame-Options SAMEORIGIN
</ifmodule>

<ifmodule mod_rewrite.c>
    # Turn on URL rewriting
    RewriteEngine On
    RewriteBase /ho96.com

    #www. added automatically to my domain ONLY IF a subdomain is not already there. Subdomains bypass this redirect.
    RewriteCond %{HTTP_HOST} ^[^.]+\.[^.]+$
    RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [L,R=301]

    # If a directory or a file exists, use it directly, otherwise forward it to index.php
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . index.php

    # Redirecting IP to domain
    RewriteCond %{HTTP_HOST} ^160\.153\.85\.7
    RewriteRule (.*) https://www.ho96.com/$1 [R=301,L]
</ifmodule>

<ifmodule mod_deflate.c>
    # Compressing text, html, javascript, css, xml:
    AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
</ifmodule>

<ifmodule mod_expires.c>
    # File caching (5 minutes = A300; 1 week = A604800; 1 month = A2419200; 1 year = A29030400)
    ExpiresActive On
    ExpiresDefault A604800 
    ExpiresByType image/x-icon A2419200
    ExpiresByType application/x-javascript A2419200
    ExpiresByType text/css A2419200
    ExpiresByType text/html A300
    <FilesMatch "\.(pl|php|cgi|spl|scgi|fcgi)$">
    ExpiresActive Off
    </FilesMatch> 
</ifmodule>
#启用符号链接
选项+以下符号链接-多视图
#防范点击劫持
标题始终设置X-Frame-Options SAMEORIGIN
#启用URL重写
重新启动发动机
RewriteBase/ho96.com
#仅当子域尚未存在时,www.才会自动添加到我的域中。子域绕过此重定向。
重写条件%{HTTP\u HOST}^[^.]+\.[^.]+$
重写规则^(.*)$http://www.%{HTTP_HOST}/$1[L,R=301]
#如果存在目录或文件,请直接使用它,否则将其转发到index.php
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则。index.php
#将IP重定向到域
重写cond%{HTTP_HOST}^160\.153\.85\.7
重写规则(.*)https://www.ho96.com/$1[R=301,L]
#压缩文本、html、javascript、css、xml:
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
#文件缓存(5分钟=300;1周=A604800;1个月=A2419200;1年=A29030400)
过期于
到期默认A604800
ExpiresByType图像/x图标A2419200
ExpiresByType应用程序/x-javascript A2419200
ExpiresByType文本/css A2419200
ExpiresByType文本/html A300
过期活动关闭

您网站的路径是什么?它在子目录中吗?如果是,您是否设置了
RewriteBase
?我的网站的路径是。我添加了RewriteBase,但它不起作用:(您是否执行了
RewriteBase/ho96.com
?或者您尝试了什么?完全正确。我得到了以下错误:无法加载页面加载URL时出现问题file:///opt/lampp/htdocs/ho96.com/en/contact 打开文件时出错:没有这样的文件或目录所以…编辑您的帖子(不要发表评论)当你编辑你的文章时,你的.htaccess文件中的所有内容