我在Ubuntu上使用zend框架與Apache服務器。當我嘗試在本地主機上我的網站,我使用以下網址Zend框架與phpBB:URL問題
例如:
http://test.dev/authentication/login
http://test.dev/student/profile
在哪裏「認證」是指AuthenticationController和「登錄」指的是在loginAction。 'student'指StudentController,'profile'指profileAction。
問題:現在我想用我的網站phpBB論壇。我不得不使用以下URL來啓動我的網站phpBB論壇。
http://localhost/test/forum/
其中'test'是我的主項目(網站)目錄。我想爲phpBB論壇使用以下URL。
http://test.dev/forum/
如何配置我的項目使用上面的URL打開phpBB論壇?我應該創建一個控制器嗎?
感謝
我使用的是Apache服務器。 你能告訴我應該在.htaccess文件中寫什麼。 感謝您的迴應。 – NAVEED 2009-11-02 15:04:19
請發佈您當前的.htaccess文件,以便我可以查看它。 – 2009-11-02 18:02:24
SETENV APPLICATION_ENV發展 RewriteEngine敘述在 的RewriteCond%{} REQUEST_FILENAME -s [OR] 的RewriteCond%{} REQUEST_FILENAME -l [OR] 的RewriteCond%{} REQUEST_FILENAME -d 重寫規則^ * $ - [NC,L] RewriteRule ^。* $ index.php [NC,L] – NAVEED 2009-11-03 06:12:49