Hi All,
Trust me i am sure this is me doing something wrong or missing something but I wanted to ask the community to try and see what part im doing or wrong or what i haven’t done.
So i recently brought a domain and hosting with Bluehost to learn how to do multisites for a work project but in my own time as you know for \*fun\*.
So these are the things i’ve done and we can check off..
* Created Pointed a DNS A record for a wildcard \* that points to the server.
* Created a subdomain wildcard \* on Bluehost – I think this might be the issue as I know this has to point to the document root of the wp\_config file but i can’t seem to change its document root and been told by bluehost that i can’t point it to a different root is this correct?
* I’ve installed a WP installation and set it up as WP Network.
* I have a wpconfig file that includes the following as i setup a subdoimain network
/\* Add any custom values between this line and the “stop editing” line. \*/
define( ‘WP\_ALLOW\_MULTISITE’, true );
define( ‘MULTISITE’, true );
define( ‘SUBDOMAIN\_INSTALL’, true );
define( ‘DOMAIN\_CURRENT\_SITE’, ‘mydomain.co.uk’ );
define( ‘PATH\_CURRENT\_SITE’, ‘/’ );
define( ‘SITE\_ID\_CURRENT\_SITE’, 1 );
define( ‘BLOG\_ID\_CURRENT\_SITE’, 1 );
* I then edited the .htaccess as instructed and the file now reads like this
RewriteEngine On
RewriteRule .\* – \[E=HTTP\_AUTHORIZATION:%{HTTP:Authorization}\]
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\]
\# php — BEGIN cPanel-generated handler, do not edit
\# Set the “ea-php81” package as the default “PHP” programming language.
<IfModule mime\_module>
AddHandler application/x-httpd-ea-php81\_\_\_lsphp .php .php8 .phtml
</IfModule>
\# php — END cPanel-generated handler, do not edit
* I then go into the WP Network and create a new site on this occassion [test.mydomain.co.uk]) and when i visit that subdomain i get the following error.
Not Found
The requested URL was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
So what have i done wrong or what should I try i’m not a beginner beginner but im not advanced eitther the server side stuff is my weaker strength in this troubleshooting. I think it has to do with the \* wildcard domain pointing to a empty directory and not the same directory as the wpconfig but im stuck with how to change/edit that if the host is telling me i cant. Can i redirect to the file folder in .htaccess?
Anyway if you got this far thank you for reading and if you can assist or have some advice drop it below.
[ad_2]