{"id":6074751,"date":"2015-04-29T12:41:39","date_gmt":"2015-04-29T12:41:39","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/creating-subdomain-and-wp-login-issue\/"},"modified":"2016-08-24T15:20:50","modified_gmt":"2016-08-24T15:20:50","slug":"creating-subdomain-and-wp-login-issue","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/creating-subdomain-and-wp-login-issue\/","title":{"rendered":"Creating Subdomain and wp-login issue"},"content":{"rendered":"<p>Hello, guys!<\/p>\n<p>I have tried to create a subdomain of my main website but something went wrong on the way and I can&#8217;t figure it out. First of all, let me tell you what I did and how I want the subdomain to work.<\/p>\n<p>I have created new database and install a new WordPress site on a specific directory ( e.g. <strong>public_html\/blogosaur<\/strong>), then<br \/>\nI created the subdomain (e.g <strong>blog.example.com<\/strong>) from the cPanel and set the Document Root (from cPanel) to <strong>public_html\/blog<\/strong> . <strong>I wanted that the directory root name from public_html to not have the same name as the subdomain for security reasons.<\/strong><\/p>\n<p>It went perfectly until I saw that when I tried to access my new Blog (<strong>blog.example.com<\/strong>), the browser was opening <strong>example.com\/blogosaur<\/strong> directory which I didn&#8217;t want. I wanted it to open the subdomain, <strong>blog.example.com<\/strong>, <strong>not the example.com\/blogosaur<\/strong>.<\/p>\n<p>I thought that maybe I have to do some settings from the Dashboard and I changed some settings: <strong>Setting=&gt; General and changed the WordPress Adress (URL) from http:\/\/example.com\/blogosaur to blog.example.com and Site Adress (URL) to http:\/\/example.com\/blogosaur<\/strong> , and this was my undoing.<\/p>\n<p>Now I cannot login as Administrator because I cannot access \/wp-login anymore, but I can still visit the website.<\/p>\n<p>First, how can I fix the issue with the \/wp-login and then, how can I properly setup my subdomain in order to be as in this example: blog.example.com , but the public_html directory root name to be blogosaurus?<\/p>\n<p>Sorry for my English.<\/p>\n","protected":false},"template":"","class_list":["post-6074751","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6074751","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6074751\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=6074751"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}