Hello, I have installed the yii2 Framework to my webfaction php application. Everything works, and if I go to http://myhost.com/basic/web/index.php the application works just fine. Now I want to remove the "basic/web" part of the url. I followed the yii2 docs http://www.yiiframework.com/doc-2.0/guide-start-installation.html#configuring-web-servers but when I create a .htaccess file in the php application root it does not work and gives me a 500 error. Someone had mentioned that Webfaction does not allow virtualhost in .htaccess. Is there anyway around this? Here is the code that I am wanting to use in my .htaccess:
Thank you. asked 28 Oct '14, 21:21 yoran15 |
My recommendation is that you install a "Symbolic link to Static/CGI/PHP-5.5" application from our control panel, using "/home/your_username/webapps/your_app_name/basic/web" as the symlink path, then serve that app from the root of your site. Hope that helps! answered 29 Oct '14, 20:28 seanf Thanks. I didn't know about the symbolic link app category in the applications section. Link to the relevant documentation: http://docs.webfaction.com/user-guide/websites.html#installing-applications-not-listed-in-the-control-panel
(08 Nov '14, 19:24)
yoran15
|