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

Non www. URL to redirect to www. URL in Wordpress

Hello!

Im having a problem with a site that i built for a customer (www.jurisprudentia.fi). I cant get the site to redirect users that type in "jurisprudentia.fi" to "www.jurisprudentia.fi".

Additionally if user types the URL with out "www." the site displays a page that just says "page ok".

Can some one help me? Is the problem related to the website or DNS? How to fix it?

Thank you already beforehand! Mikko

3 Answers

You can try this plugin. https://wordpress.org/plugins/redirection/ or https://wordpress.org/plugins/seo-redirection/ Not sure if it will resolve a DNS Issue but it can help with redirection of one link to another. It's a free WordPress Plugin.

I am no expert, but I would look into your DNS. It seems like a DNS record is messed up.

It could also be a .htaccess problem, but I don't know a whole lot about .htaccess either :/ Sorry.

Ok thanks for your help ill try to look into DNS. htacess file is completely standard now so probably it shouldnt be a problem. In other sites that i have built this problem didnt come up :/