Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

WordPress

Mikko Peltomaki
Mikko Peltomaki
4,416 Points

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

Joel Rivera
Joel Rivera
29,401 Points

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.

Logan R
Logan R
22,989 Points

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.

Mikko Peltomaki
Mikko Peltomaki
4,416 Points

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 :/