WordPress.org

Ready to get started?Download WordPress

Forums

Install of multisite with MAMP (3 posts)

  1. Paal Joachim Romdahl
    Member
    Posted 9 months ago #

    How do I install a multisite inside a folder inside htdocs?

    I followed this tutorial:
    http://perishablepress.com/wordpress-multisite-mamp/
    But the tutorial is based on having all the files in the root of htdocs.

    I am not getting the htaccess file to point correctly to my multisitetest folder.

    From the tutorial:
    "Lastly, create a blank file named .htaccess in your /htdocs/ directory and add the following code:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]

    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
    RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]

    --------

    What do I need to correct for it to work inside the folder multisitetest?

    Thank you.

  2. Did you make the file?

    What makes you think it's not working? (Remember, we can't see your site)

  3. Paal Joachim Romdahl
    Member
    Posted 9 months ago #

    Hi Mika

    With the above htaccess file:

    I enter the backend.
    Hover over: My Sites -> Network Admin -> Dashboard goes to this link: localhost/wp-admin/network

    Network admin areas look to: localhost/wp-admin and Visit Network link leads to the root of htdocs.
    Since the root only contains various folders to various local sites I get an error.

    I do not know how to add in the folder structure into the htaccess file. I have also e-mailed the author of the article, and hope to get an answer there as well.

    Many Blessings.

Reply

You must log in to post.

About this Topic