Laravel 4 on the PHP Embedded Web Server (CGI) instead of Apache

I am trying to run laravel4 on a service that cannot use Apache or nginx. everything is fine until I want to use Routes in my project. I tried using /index.php/...in the url but could not do the job. is there any way to get laravel not to use the .htaccess file or any ways to use raw PHP routing?

+3
source share
1 answer

Try setting the "application.url" parameter in one of the configuration files, possibly in the application /config/application.php or application / config / application.php:

https://github.com/laravel/laravel/blob/4cb904f44d24f856ec9c1040d2198ed8f009723b/application/config/application.php

http://127.0.0.1:54007/index.php. , laravel url, , URL- http://127.0.0.1:54007/index.php/account/signin.

PHP Desktop , . settings.json :

"web_server": {
    "listen_on": ["127.0.0.1", 54007],

laravel.htaccess :

<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>

, , "/index.php" URL-, , apache mod_rewrite.

- , "url.php", "uri.php".

, .

.
URL- "index.php" "http://". , -.

UPDATE PHP Desktop - Mongoose, URL-, "index.php/company/5". . __fix_mongoose_env_variables() php 137, :

https://code.google.com/p/phpdesktop/issues/detail?id=137

+2

All Articles