But sub-domain not working and shows 500 Internal Server Error.
For a test, rename .htaccess to old.htaccess
Do you still get the error 500?
If so, it’s probably not WordPress and instead is how you created the subdomain on your server. Delete the subdomain on the SERVER and redo it. Do not delete the SITE on your network, leave that alone. Most likely, the problem is that your server isn’t pointing to the right place.
Thread Starter
fidzi
(@fidzi)
Thank for your hint.
After rename .htaccess, sub-domain is “NOT FOUND” instead of “500 internal server error”.
But I don’t understand to:
Delete the subdomain on the SERVER and redo it.
I don’t have subdomain physically created on server, but only configured in WP sites as subdomain mode, like site1.example.com.
My hosting allows creating physically subdomain as folder in “_sub” folder in file system. When I create empty folder in “_sub/site1”, result is “403 Forbidden”.
Uf, Is something I doing incorrect?
I don’t have subdomain physically created on server, but only configured in WP sites as subdomain mode, like site1.example.com.
Well … that’s a problem π
See, telling WP ‘Use subdomains’ doesn’t work if you don’t tell your SERVER you also want to use subdomains. Read http://codex.wordpress.org/Before_You_Create_A_Network#Domain-based
Subdomain not found means you did not create the subdomain on your server. Without knowing your host, or what kind of panel you have, all I can do is give a generic answer: You have to create a subdomain and point it to the location where your MAIN domain is installed.
On cPanel, that means making a subdomain and changing the location from the default /public_html/subdomain to just /public_html/
Thread Starter
fidzi
(@fidzi)
My hosting allows creating physically subdomain as folder in “_sub” folder in file system. When I create empty folder in “_sub/site1”, result is “403 Forbidden”.
Creating subdomain is automatically in my hosting…
When I have created subdomain,folder si empty and there is 403 Forbidden.
What can I do else?
Creating subdomain is automatically in my hosting…
How? If you don’t know, then you need to ask your hosting how to do this.
Just ask them this “How do I make a subdomain point to the main folder of my site?” (Don’t say WordPress, I promise it DOES NOT matter right now)
Thread Starter
fidzi
(@fidzi)
Yes Ipstenu, I understand π I try create subdomain and subdomain is OK. I can test it by coping any index.html to subdomain. Without index.html has subdomain still problem – 403 Forbidden, so I think my WP (in root) doesnt recognize subdomain, or there is any other problem…
You’re incorrect. It’s NOT WordPress.
I can test it by coping any index.html to subdomain.
If this means you have a special folder for the subdomain then you are not creating the subdomain correctly.
There should be NO folder created for any subsite. When you make the subdomain on your server, you set it’s ‘root’ directory as the same as WordPress.
So if WP is installed in /home/user/domain.com then the SUBdomain has to also point there.
If yours is pointing to /home/user/domain.com/subdomain then you’re setting this up incorrectly.
WP cannot, will not, and is not supposed to recognize separate subdomains. It’s supposed to translate any subdomain that shares its space, though.
Thread Starter
fidzi
(@fidzi)
Ipstenu, you are right.
I wrote to my hosting to set my subdomain in public_html/_sub point to public_html/ where is my WP. After this subdomain is OK.
Ipstenu, thank you for your help and patience π