【问题标题】:Cakephp 3.x .htaccess issue on bluehost server.bluehost 服务器上的 Cakephp 3.x .htaccess 问题。
【发布时间】:2016-01-13 13:23:01
【问题描述】:

我想在 WP 网站内设置 cakephp 3.x 解决方案。

在我的 bluehost 服务器上,public_html 的目录结构如下:

我想访问stagetribescrm 目录,该目录包含Cakephp 3.x 文件结构。 .

public_html/stagetribescrm/.htaccess 文件内的代码。

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /stagetribescrm/
#   RewriteRule ^$ webroot/    [L]
#   RewriteRule (.*) webroot/$1    [L]
</IfModule>

public_html/stagetribescrm/webroot/.htaccess 文件内的代码。

<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>

这段代码的问题是它无法在webroot文件夹的文件中加载css和js文件。

谢谢。

【问题讨论】:

    标签: php .htaccess cakephp-3.0


    【解决方案1】:

    请检查 bluehost 服务器中的重写模块是否打开 按照以下链接: http://www.abhinavsood.com/install-cakephp-in-subdirectory-of-wordpress/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-05-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-02-24
      • 2018-09-09
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多