0
我的網絡服務器的結構:如何設置zendFramework應用程序公用文件夾
mysite.com/www/here goes zendFramework folders and files..
我要讓我的網址這樣
mysite.com
,但不喜歡這樣的:
mysite.com/public/
所以如何使它成爲最好的方式?使用.htaccess重定向?
我的網絡服務器的結構:如何設置zendFramework應用程序公用文件夾
mysite.com/www/here goes zendFramework folders and files..
我要讓我的網址這樣
mysite.com
,但不喜歡這樣的:
mysite.com/public/
所以如何使它成爲最好的方式?使用.htaccess重定向?
閱讀這篇文章:http://akrabat.com/zend-framework/zend-framework-on-a-shared-host/
中的index.php在根文件夾:
<?php
define('RUNNING_FROM_ROOT', true);
include 'public/index.php';
在.htaccess文件在根文件夾:
SetEnv APPLICATION_ENV production
RewriteEngine On
RewriteRule .* index.php
十分感謝! – Hello 2013-03-28 08:55:04