I have setup a multisite on my localhost and edited the hosts file to allow for subdomains.
I am using the latest version of wordpress and MAMP.
Things seemed to be working fine however when I am on my site localhost.com and try to click on a page in the menu it gives me the following error.
The requested URL /page-name/ was not found on this server.”
I have found some sites instructing me to edit the httpd.conf file to the following
NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot “/Users[Your User Name]/Sites/” ServerName localhost </VirtualHost>
<VirtualHost *:80> DocumentRoot “/Users/[Your User Name]/Sites/wordpress” AllowOverride All ServerName mycoolsitename.dev </VirtualHost>
Should I just set it up for development using subdirectories? Can I change it once I upload to the hosting server when the sites go live?
Or is it best to set it up properly now using subdomains so it’s easier when the site goes live on a “public” server?
Are others developing multisites locally using subdomains?
Thanks for your help.
- The topic ‘Localhost Multisite with Subdomain Pages Error’ is closed to new replies.