Skip to content

Getting started with MAMP/WAMP #6

Description

@benpixel

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions