Multisite subdomain Dashboard – Server Error 404 – Please help!
-
I made the TamiFoto.com a year ago, and works fine.
I made a new subdomain (hochzeit.tamifoto.com). I see now on the top the “My sites” and below, I see my new subdomain’s name. But under that, nothing works – I can’t reach the dashboard, to start editing the new site. It gives me a 404 server error.
I made the changes in the wp-config.php and the .htaccess (below), as on the “Wp Dashboard/Settings/Network setup” written.
I added the new subdomain in the ” My sites / Network admin / Sites” and added myself to the users as admin.
I added the new “A” record to my DNS records.
I added the new subdomain also in plesk.
The original hosting setting (in Plesk) for Document root was /hochzeit.tamifoto.com I changed it to /public_html, it’s the same (404 server error). (Now it’s /hochzeit.tamifoto.com again)I found lot’s of topics in the forum, (I tried f.E. more versions for the .htaccess and the wp-config.php, different settings in plesk, and also the full removal and start again) but none of them helped me.
If I install the wordpress for the subdomain, I can reach the dashboard and would work, but important: I would like to use the same media files, theme and also the same plugins, so I don’t want to install a new wordpress for the subdomain. It should use everything, what I already have on the server.
So, what should I do now, to solve the problem?
I would apprechiate your comments, thank you!
my .htaccess
# BEGIN GzipWpFastestCache <IfModule mod_deflate.c> AddType x-font/woff .woff AddType x-font/ttf .ttf AddOutputFilterByType DEFLATE image/svg+xml AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/xml AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE text/javascript AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript AddOutputFilterByType DEFLATE application/x-font-ttf AddOutputFilterByType DEFLATE x-font/ttf AddOutputFilterByType DEFLATE application/vnd.ms-fontobject AddOutputFilterByType DEFLATE font/opentype font/ttf font/eot font/otf </IfModule> # END GzipWpFastestCache # BEGIN LBCWpFastestCache <FilesMatch "\.(webm|ogg|mp4|ico|pdf|flv|jpg|jpeg|png|gif|webp|js|css|swf|x-html|css|xml|js|woff|woff2|otf|ttf|svg|eot)(\.gz)?$"> <IfModule mod_expires.c> AddType application/font-woff2 .woff2 AddType application/x-font-opentype .otf ExpiresActive On ExpiresDefault A0 ExpiresByType video/webm A10368000 ExpiresByType video/ogg A10368000 ExpiresByType video/mp4 A10368000 ExpiresByType image/webp A10368000 ExpiresByType image/gif A10368000 ExpiresByType image/png A10368000 ExpiresByType image/jpg A10368000 ExpiresByType image/jpeg A10368000 ExpiresByType image/ico A10368000 ExpiresByType image/svg+xml A10368000 ExpiresByType text/css A10368000 ExpiresByType text/javascript A10368000 ExpiresByType application/javascript A10368000 ExpiresByType application/x-javascript A10368000 ExpiresByType application/font-woff2 A10368000 ExpiresByType application/x-font-opentype A10368000 ExpiresByType application/x-font-truetype A10368000 </IfModule> <IfModule mod_headers.c> Header set Expires "max-age=A10368000, public" Header unset ETag Header set Connection keep-alive FileETag None </IfModule> </FilesMatch> # END LBCWpFastestCache # BEGIN WordPress # The directives (lines) between <code>BEGIN WordPress</code> and <code>END WordPress</code> are # dynamically generated, and should only be modified via WordPress filters. # Any changes to the directives between these markers will be overwritten. <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 WordPress # Wordfence WAF <Files ".user.ini"> <IfModule mod_authz_core.c> Require all denied </IfModule> <IfModule !mod_authz_core.c> Order deny,allow Deny from all </IfModule> </Files> # END Wordfence WAF RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.tamifoto.com/$1 [R,L] # BEGIN WP-HUMMINGBIRD-GZIP # END WP-HUMMINGBIRD-GZIP # BEGIN Enable Gzip Compression <IfModule mod_deflate.c> AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript </IfModule> # END Enable Gzip Compression RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.hochzeit.tamifoto.com/$1 [R,L]my wp-config.php
<?php define('WP_AUTO_UPDATE_CORE', 'minor');// Diese Einstellung ist erforderlich, damit WordPress-Updates korrekt in WordPress Toolkit verwaltet werden können. Entfernen Sie diese Zeile, wenn diese WordPress-Instanz nicht mehr in WordPress Toolkit verwaltet wird. /** * The base configuration for WordPress * * The wp-config.php creation script uses this file during the * installation. You don't have to use the web site, you can * copy this file to "wp-config.php" and fill in the values. * * This file contains the following configurations: * * * MySQL settings * * Secret keys * * Database table prefix * * ABSPATH * * @link https://codex.wordpress.org/Editing_wp-config.php * * @package WordPress */ // ** MySQL settings ** // /** The name of the database for WordPress */ define( 'DB_NAME', 'xxxx' ); /** MySQL database username */ define( 'DB_USER', 'xxxx' ); /** MySQL database password */ define( 'DB_PASSWORD', 'xxxx#xxxx' ); /** MySQL hostname */ define( 'DB_HOST', 'localhost:3306' ); /** Database Charset to use in creating database tables. */ define( 'DB_CHARSET', 'utf8' ); /** The Database Collate type. Don't change this if in doubt. */ define( 'DB_COLLATE', '' ); /** * Authentication Unique Keys and Salts. * * Change these to different unique phrases! * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service} * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again. * * @since 2.6.0 */ define('AUTH_KEY', 'a6gbz4/xxxx;r|5d|+Ow%|pj94VM-B62r_y:1[ov]&0&2hd+MxC#4)(6ap'); define('SECURE_AUTH_KEY', 'W_S[O;*9/d3VkF_)e2C*39]H_q~48df0X)XaF4+f!dF:xxxx*JP0d-8V~]5-'); define('LOGGED_IN_KEY', '!O@9;5oDc#|FsOo0m+qI8kE:zB5]o6XoZ5+;#Xq|1HmD59%]xxxx#h~2+*'); define('NONCE_KEY', 't71Bf4G8k8k58s23Z:8|G|D]Wx~Xo4R[|EV@xxxx/H3;Uc2C7769(;w'); define('AUTH_SALT', '89Ul5OpC5x+s+*V8rD4Si933*xxxx-069mL*8640WVdEa1T6-g'); define('SECURE_AUTH_SALT', 'xxxx-*%l41[|d400B!!2-CL3hG8[/Ca513J9cFrJ73;*j6W|2Poy;'); define('LOGGED_IN_SALT', 'eg0~xxxxx~X%2[Y81[x'); define('NONCE_SALT', '8ICA@(q3wtqa6#30vs4m|;6Fd&/4qP!h:6:_07GHL+K/xxxx[Qh96!1(-K9'); /** * WordPress Database Table prefix. * * You can have multiple installations in one database if you give each * a unique prefix. Only numbers, letters, and underscores please! */ $table_prefix = 'b9ER8nhg_'; define('WP_ALLOW_MULTISITE', true); define('MULTISITE', true); define('SUBDOMAIN_INSTALL', true); define('DOMAIN_CURRENT_SITE', 'tamifoto.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';- This topic was modified 6 years, 2 months ago by .
- This topic was modified 6 years, 2 months ago by . Reason: removed passwords
The page I need help with: [log in to see the link]
The topic ‘Multisite subdomain Dashboard – Server Error 404 – Please help!’ is closed to new replies.