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 trialGary Calhoun
10,317 PointsWebsite 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
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.
4 Answers
Gary Calhoun
10,317 PointsMultiple WordPress press installs on same domain but in different directories
RJ Mey
3,034 PointsHave you seen this article? You might need a separate .htaccess file in the subfolder (if you aren't already).
Gary Calhoun
10,317 PointsI 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
10,317 PointsHi 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
3,034 PointsGlad 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
10,317 PointsOh 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
3,034 PointsI 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.
Gary Calhoun
10,317 PointsI found some information to set up sub domain will give it a go http://download1.parallels.com/Plesk/Plesk8.3/Doc/en-US/plesk-8.3-win-administrators-guide/29047.htm thanks again:)
RJ Mey
3,034 PointsRJ Mey
3,034 PointsHow do you have this setup? Is it a multisite install or are you running multiple installs on the same domain?