Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Gavin Macken
Gavin Macken
18,070 Points

Redirect issues

Hi

I am having trouble redirecting my wordpress site it currently is linked to http://poperteev1.northeurope.cloudapp.azure.com/ but I would like to link it to popertee.co.uk !!

As for now when I type in popertee.co.uk it brings up this link http://poperteev1.northeurope.cloudapp.azure.com/wp-signup.php?new=popertee.co.uk and it doesn't exist !!

I've tried change the htaccess file and but it's not giving me and option to change site or home domain names ??

Please help.

Hey Gavin, did you assign that domain properly via GoDaddy (i.e., setting up the redirect through your panel to sort out the DNS issues, or add a CNAME record)? Also, you did get the syntax correct for the .htaccess file (Redirect 301 oldurl newurl)? I run a WordPress site for my business, so I've had to deal with this before, as I'm sure many others here have. In a pinch, I know there's also a plugin, I think it's just plainly called "redirect" that should be able to temporarily point traffic to your base domain without much hassle. Without knowing more details, I hope this helps!

1 Answer

Chris Shaw
Chris Shaw
26,676 Points

Hi Gavin,

In order to use a FQDN (fully qualified domain name) you first need to tell WordPress what the new URL is as the database will only have a static record for your Azure domain, see the below links which will help you to switch from the existing domain to a new one.

Make sure you backup your SQL database before attempting any tasks in the above URL's.