Forum Replies Created

Viewing 1 replies (of 1 total)
  • I came across the same issue, but the above didn’t help..

    I used a tweak by Joel Glovacki on Github, https://gist.github.com/saetia for masking my dns to use ie. localhost.dev for testing.

    I set up a multisite with subdomains on my localhost user web root and got the main site working with a dnsmasq of https://project.dev

    Everything is working nicely for the parent site, but when I create a new site then attempt to reach the dashboard or view anything on the new site I get a 404 Not Found “The requested URL / was not found on this server.” error.

    I have this within my username.conf file:

    DocumentRoot “/Users/Julius/Sites/”
    NameVirtualHost *:80

    Options Indexes MultiViews FollowSymLinks Includes
    AllowOverride All
    Order allow,deny
    Allow from all

    UseCanonicalName off
    VirtualDocumentRoot /Users/Julius/Sites/%-2+/htdocs

    and here’s my htaccess file:

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

    # add a trailing slash to /wp-admin
    RewriteRule ^wp-admin$ wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ – [L]
    RewriteRule ^(wp-(content|admin|includes).*) project/htdocs/$1 [L]
    RewriteRule ^(.*\.php)$ project/htdocs/$1 [L]
    RewriteRule . index.php [L]

    Did I do something wrong along the way??

    Thanks!

Viewing 1 replies (of 1 total)