Sub domain site admin not working
-
I have created a sub domain for my site, enabled wp network and installed suggested code into .htaccess for sub domain. The site can be visited, but I am unable to access sub sites dashboard. I am a newbie with wordpress, so any help would be appreciated.
Website: http://www.xdealertechs.com
Sub-site: http://xdealertechs.com/mobile.xdealertechs.com
-
To clarify, I can access network dashboard and see the subdomain site. The only problem is when I attempt to go to the subsite dashboard. It tries to load for a while, then sends to http://xdealertechs.com/mobile.xdealertechs.com/wp-admin/ and says 404, not found.
I think there is an error in your configuration. We may need to see your .htaccess file and the network configurations in wp-config.php.
For subdomains, you should be accessing the site at http://mobile.xdealertechs.com and the console at http://mobile.xdealertechs.com/wp-admin
.htaccess <Files ~ "^wp-login.php"> </Files> # BEGIN WordPress <IfModule mod_rewrite.c> 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).*) $1 [L] RewriteRule ^(.*\.php)$ $1 [L] RewriteRule . index.php [L] </IfModule> # END WordPresswp-config.php
* For developers: WordPress debugging mode. * * Change this to true to enable the display of notices during development. * It is strongly recommended that plugin and theme developers use WP_DEBUG * in their development environments. */ define('WP_DEBUG', false); /* Multisite */ define( 'WP_ALLOW_MULTISITE', true ); define('MULTISITE', true); define('SUBDOMAIN_INSTALL', true); define('DOMAIN_CURRENT_SITE', 'www.xdealertechs.com'); define('PATH_CURRENT_SITE', '/'); define('SITE_ID_CURRENT_SITE', 1); define('BLOG_ID_CURRENT_SITE', 1); /* That's all, stop editing! Happy blogging. */ /** Absolute path to the WordPress directory. */ if ( !defined('ABSPATH') ) define('ABSPATH', dirname(__FILE__) . '/'); /** Sets up WordPress vars and included files. */ require_once(ABSPATH . 'wp-settings.php');I have installed the subsite wordpress install, and changed themes.
could it be the .htaccess file for the subsite?
(mobil.xdealertechs) .htaccessRewriteEngine 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).*) $1 [L] RewriteRule ^(.*\.php)$ wp/$1 [L] RewriteRule . index.php [L]or the wp-config.php?
/* Multisite */ define( 'WP_ALLOW_MULTISITE', true ); /* That's all, stop editing! Happy blogging. */ /** Absolute path to the WordPress directory. */ if ( !defined('ABSPATH') ) define('ABSPATH', dirname(__FILE__) . '/'); /** Sets up WordPress vars and included files. */ require_once(ABSPATH . 'wp-settings.php');?>Sorry for all the code, but I have figured out just enough to get myself in trouble. Thanks for any help
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
You have this:
define('SUBDOMAIN_INSTALL', true);That means your URL is NOT http://xdealertechs.com/mobile.xdealertechs.com/
That would be a subFOLDER π AKA Sudomains are false.
http://mobile.xdealertechs.com/ would be the right URL but it’s an error 500.
Is there ACTUALLY a folder ‘mobile.xdealertechs.com’ on your site?
Yes there is. If I put into my browser, the subsite comes up
http://xdealertechs.com/mobile.xdealertechs.com/
sorry, misused linkNo, what I mean is you set up WP wrong.
Do you want sitename.domain.com OR domain.com/sitename
Pick one π We can debug from there.
I sent a ticket into my host provider, they fixed it and gave me code for redirecting mobile devices to subdomain. Thanks for the help!
The topic ‘Sub domain site admin not working’ is closed to new replies.