• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 832
  • Last Modified:

Wordpress redirects to subdomain

Hi

When I installed Wordpress the site domain was not yet pointing at the hosting space so in General Settings I set the Wordpress URL and Site Address URL to the preview URL provided by the host which is in the format preview.myhost.net.mydomain.com (where mydomain.com is the domain for the site).  That all worked fine.

Now that the domain IS pointing at the Wordpress site, browsing to www.mydomain.com displays the site fine but the browser address bar shows that a redirect is occurring to preview.myhost.net.mydomain.com.  

How do I stop Wordpress performing this redirect?  If I change the WordPress Address (URL) in Settings > General from http://preview.myhost.net.mydomain.com to http://www.mydomain.com then I can no longer login to admin and I have to change the value back in the database.

I've read http://codex.wordpress.org/Moving_WordPress but I'm not sure what parts are relevant since I'm not actually needing to move the location of any files.

Help appreciated!
0
Danzigger
Asked:
Danzigger
1 Solution
 
DamjanCommented:
Hi,

did you change both?

The "Home" setting is the address you want people to type in their browser to reach your WordPress blog.
The "Site URL" setting is the address where your WordPress core files reside.

Note: Both settings should include the http:// part and should not have a slash "/" at the end.

You can also try other methods, listed here - http://codex.wordpress.org/Changing_The_Site_URL
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now