Hi there! I wanted to run frameworkless without docker or vagrant, by using good ol' MAMP and looks like I succeeded. Here is what I had to do, maybe someone will find it useful.
Edit base.html.twig to look for CSS in the right place:
<link rel="stylesheet" href="../public/assets/css/style.css">
Create a .htaccess in root directory and add:
Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteBase /public/
RewriteCond %{REQUEST_URI} !/public [NC]
RewriteRule ^(.*)$ index.php/$1 [L]
Oops, not working. Looks like .htaccess overrides are disabled.
In /Applications/MAMP/conf/apache/httpd.conf find this:
<Directory />
Options Indexes FollowSymLinks
AllowOverride None
</Directory>
...and replace with
<Directory />
Options Indexes FollowSymLinks
AllowOverride All
</Directory>
Now, I'm wondering if there is a simpler way of doing this and is it possible that somewhere down the road this might interfere with router somehow?
Hi there! I wanted to run frameworkless without docker or vagrant, by using good ol' MAMP and looks like I succeeded. Here is what I had to do, maybe someone will find it useful.
Edit base.html.twig to look for CSS in the right place:
Create a .htaccess in root directory and add:
Oops, not working. Looks like .htaccess overrides are disabled.
In /Applications/MAMP/conf/apache/httpd.conf find this:
...and replace with
Now, I'm wondering if there is a simpler way of doing this and is it possible that somewhere down the road this might interfere with router somehow?