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

Gary Calhoun
Gary Calhoun
10,317 Points

Website I built for a client keeps going back to the root domain

I am not sure why but a website I built is going back to the root domain but it should be

http://50demo10.com/rosso/

If I go here for example its showing the root website (a different website I made) http://50demo10.com/rosso/meet/

When I look at the page via the edit it show the correct link and code the pages do exist.

I tried changing permalinks, duplicating the page, renaming the url

The only thing I could think could be causing it is maybe something in the .htaccess file I am not sure though

BEGIN WordPress

<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>

END WordPress

If anyone knows what to do or could point me in the right direction please let me know.

RJ Mey
RJ Mey
3,034 Points

How do you have this setup? Is it a multisite install or are you running multiple installs on the same domain?

4 Answers

Gary Calhoun
Gary Calhoun
10,317 Points

Multiple WordPress press installs on same domain but in different directories

RJ Mey
RJ Mey
3,034 Points

Have you seen this article? You might need a separate .htaccess file in the subfolder (if you aren't already).

Gary Calhoun
Gary Calhoun
10,317 Points

I have a separate htaccess file, the code I posted on the original post is from that file, thanks for the article I will check it out when I get into work tomorrow and see if I can resolve

Gary Calhoun
Gary Calhoun
10,317 Points

Hi thanks for your help I finally got it. It seems the initial issue was a permissions issue with the .htaccess file. I had to literally delete it off the server and reupload it before hand with the correct permissions set, so it wasn't saving the permalink changes I was making essentially because of read write access. Thanks again phew I was going crazy haah.

RJ Mey
RJ Mey
3,034 Points

Glad to hear it! I usually install onto subdomains to avoid stuff like this, but I'm guessing you have your reasons for installing in a folder.

Gary Calhoun
Gary Calhoun
10,317 Points

Oh ok, I have always done it this way for the company I work for. I never had this issue before, but maybe I will try subdomains if this issue keeps happening.

RJ Mey
RJ Mey
3,034 Points

I prefer it, you just create the sub do the install, etc. You don't have to worry about things interfering with each other as much.