Skip to main content
Help Center
The GoDaddy Community will undergo maintenance starting on Wednesday, August 4th at 3pm PST / 6pm EST. Learn more
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Sue12
New

Wordpress subdomain installation points links to main domain and give errors

Hi

 

I created a subdomain which on GoDaddy is actually a subdirectory, and have a masked Domain Name pointing to it. So I have http://myvanityurl.com/ which points to http://myrealwebsite.com/myvanityurl/. It is masked with a permanent redirect.

 

I then installed WordPress on the subdomain through the GoDaddy interface. It looks fine, except all the automatically generated links are wrong. WordPress will create "Recent Posts" and "Archives" lists automatically. They point to: http://myrealwebsite.com/myvanityurl/2017/01/john-diamon/

 

But there is a 404 error, the individual post is not found. Instead, you are taken to the error page for http://myrealwebsite.com/ which allows the user to correctly browse completely unrelated content on my main site. 

 

I have successfully installed a theme, plugin etc. with no effect on my main domain. All permalink possibilities in Wordpress are based on http://myrealwebsite.com/myvanityurl/

 

It is not ideal that every link indicates myrealwebsite.com, since that's the point of masking. But why aren't the links working? 

2 REPLIES 2
JesseW
Community Manager

Hi @Sue12. Welcome to GoDaddy Community. 

 

If I were to guess, it sounds like you have another WordPress install on  myrealwebsite.com as well as on your subdirectory. Based on the examples you've given, it doesn't seem that you've actually added a subdomain. (subdomain.myrealwebsite.com). If that's the case, then it could be the redirects set up for your primary site aren't allowing access to the subdirectory you installed the second WordPress on. This can sometimes be overcome by adding rewrite rules to allow access. Unfortunately, I don't have a relevant article I can point you to on that one.  

 

JesseW - GoDaddy | Community Manager | 24/7 support available at x.co/247support | Remember to choose a solution and give likes.

Hi Jess

 

I followed the instructions at https://www.godaddy.com/help/manage-your-hosting-account-subdomains-4652 to create two subdomains. When I look in the Hosted Domains, they are listed as subdomains. Do you have some other link for creating subdomains?