-
-
Save happygrizzly/2525e4668fd985c5589e to your computer and use it in GitHub Desktop.
htaccess definition for silex when using MAMP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
#uncomment next line if silex app root is in a mamp subdirectory | |
#RewriteBase /your_mamp_htdocs_silex_app_root | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^ web/index.php [L] | |
</IfModule> | |
define your silex routes as follows: | |
$app->get('/your_mamp_htdocs_silex_app_root/', function() { | |
return 'Hello World!'; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment