在Aptana Studio中进行调试

时间:2016-01-06 06:29:47

标签: debugging aptana

我试图在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>

0 个答案:

没有答案