Created
August 18, 2012 21:49
-
-
Save crzapata/3390080 to your computer and use it in GitHub Desktop.
htaccess definition for silex when using MAMP
This file contains 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
Thank you! That is very helpful!