Hello all, and thanks for reading.
Problem: I cannot manage to run a WordPress Multisite with sub-domain in local (MAMP).
On the same environment I run few WP Multisite with sub-domains and all of them work smoothly.
So, here what I do for enabling a WP Multisite with sub-directories (which is very similar to what I do for enabling WP Multisite with sub-domains, for the record).
Fresh install of WordPress 3.5.2, setup permalinks to "Post Name" (http://mysite.dev/%postname%/), verified that in General Settings "WordPress Address (URL)" and "Site Address (URL)" both point to http://mysite.com, saving all.
Added the line define('WP_ALLOW_MULTISITE', true); to wp-confing.php
From there I just follow the instruction for enabling a WordPress Multisite with sub-directories.
On the Terminal.
# ## mysite.dev WP Multisite 127.0.0.1 mysite.dev 127.0.0.1 *.mysite.dev 127.0.0.1 mysite.dev/test
The two last line are due to frustration and I tried almost everything I could think of.
For MAMP I setup the Apache Port at 80, and MySQL Port at 3306. Then I added a specific config file, where I setup the virtual server.
<virtualHost *:80> ServerName mysite.dev ServerAlias mysite.dev *.mysite.dev DocumentRoot "/Users/carlorizzante/Dropbox/Development/vhosts/mysite.dev/" <directory "/Users/carlorizzante/Dropbox/Development/vhosts/mysite.dev/"> Options Indexes FollowSymLinks Includes AllowOverride All Order allow,deny Allow from all </directory> CustomLog "/Users/carlorizzante/Dropbox/Development/logs/mysite.dev-access.log" common ErrorLog "/Users/carlorizzante/Dropbox/Development/logs/mysite.dev-errors.log" </Virtualhost>
In the end, the main site works smoothly. The sub-sites load the content, but not the styles, so they are broken. And trying to move to the Dashboard of one of the sub-site gives a redirection loop error.
Any idea? Thanks in advance.