assetsp
Forum Replies Created
-
Forum: Networking WordPress
In reply to: multisite subdirectory to subdomainwell, its not really hacking…
cant help it if app doesnt let me install it if files are in a directory.no workaround for that 🙂
Forum: Networking WordPress
In reply to: multisite subdirectory to subdomainedit:
in step 3 for wp-config.php
define(‘SITECOOKIEPATH’, ‘/’);
define(‘COOKIEPATH’, ‘/’);
define(‘ADMIN_COOKIE_PATH’, ‘/’);
define(‘PLUGINS_COOKIE_PATH’, ‘/’);Forum: Networking WordPress
In reply to: multisite subdirectory to subdomainOk. I ll try and make this sort. You need some advanced knowledge to make it correct. I wont explain stuff a developer should know like wildcard dns, etc.
Ok . here goes:
1) put wordpress 3 files in a directory (e.g wordpress) in the the root of your site. /siteroot/wordpress/
2) edit wp-admin/network.php
change the line :
function allow_subdomain_install() {
to :
function allow_subdomain_install() {return true;
3)install wordpress. Before final step edit wp-config.php and put the lines:
define(‘SITECOOKIEPATH’, ‘/’);
define(‘COOKIEPATH’, ‘/’);
on top of the file.
After install edit again and put define(‘WP_ALLOW_MULTISITE’, true); like standard guidelines explained in wordpress codex.After you setup the network put the lines suggested in wp-config.php but change:
$base = ‘/wordpress/’;
to
$base = ‘/’;
4)
For the .htaccess follow the following instructions:.htaccess on root : add these lines
##########################
RewriteCond %{HTTP_HOST} ^([^.]+)\.clubefl\.gr
RewriteCond $1 !wordpress/
RewriteRule ^(.*)$ /wordpress/$1 [NC,L].htaccess on wordpress directory:
##########################
RewriteEngine OnRewriteBase /wordpress/
RewriteRule ^index\.php$ – [L]# uploaded files
RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ – [L]
RewriteRule . index.php [L]
######################That’s all. This worked for my site. Please post your successful or not tries.
Copyright of this Method is Assetsp.gr posted 1st at wordpress.org on 11/11/2010
🙂
Forum: Networking WordPress
In reply to: multisite subdirectory to subdomainI dont know if anyone is interested but there is a way to install wordpress 3 with Multisite enabled and subdomain install, but keepe the wordpress files to a directory and not on the root. A bit a tweating is required but it is possible. Found a way after spending 5 hours testing.