Title: Subdirectory install problem
Last modified: August 20, 2016

---

# Subdirectory install problem

 *  [yucarp](https://wordpress.org/support/users/yucarp/)
 * (@yucarp)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/subdirectory-install-problem/)
 * Hello world!
    I have one problem. I am using one script on root and want to make
   more content on website and created subfolder copy in it wordpress, and installed
   it. Ok when I type [http://www.mydomain.com](http://www.mydomain.com) everything
   is fine, but when type [http://www.mydomain.com/subfolder](http://www.mydomain.com/subfolder)
   everything is ok there is sample page etc…, but when try to acess to admin area
   wp-admin, then it redirecting me to [http://www.mydomain.com](http://www.mydomain.com)(
   root directory). I was trying to play with .htacess file but not solved problem.
   Does anybody had that problem, or maybe have solution? Thanks

Viewing 12 replies - 1 through 12 (of 12 total)

 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [14 years, 8 months ago](https://wordpress.org/support/topic/subdirectory-install-problem/#post-2286089)
 * Are you using WordPress or do you have two separate installs on two separate 
   databases?
 *  Thread Starter [yucarp](https://wordpress.org/support/users/yucarp/)
 * (@yucarp)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/subdirectory-install-problem/#post-2286145)
 * Don’t usin wordpress. Two different databases, on the root is some different 
   script, nor wordpresss, and I would like to install wordpress in subfolder.
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [14 years, 8 months ago](https://wordpress.org/support/topic/subdirectory-install-problem/#post-2286177)
 * Okay. What you;re using is NOT MultiSite (which is using ONE WordPress install
   and database to manage multiple sites).
 * Moving this out of Multisite.
 * It’s most likely that when you copied the files over, you didn’t set the wp-config.
   php and .htaccess correctly. Check those or, if this is all new and nothing’s
   installed, delete the files and start over from a fresh download, NOT a copy.
 *  Thread Starter [yucarp](https://wordpress.org/support/users/yucarp/)
 * (@yucarp)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/subdirectory-install-problem/#post-2286183)
 * Hi. Thanks!
    When I installed wordpress in subdirectory I didn’t see .htacess
   file and I had to make manually wp-config.php. I didn’t understand what exactly
   to do? To make g=fresh installation, but what then. Maybe to put all at the same
   mysql like main script in the root is installed? Thanks!
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [14 years, 8 months ago](https://wordpress.org/support/topic/subdirectory-install-problem/#post-2286206)
 * How did you install WP to begin with?
 *  Thread Starter [yucarp](https://wordpress.org/support/users/yucarp/)
 * (@yucarp)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/subdirectory-install-problem/#post-2286209)
 * I made folder in [http://www.domain.com/folder](http://www.domain.com/folder)
   then copy wordpress installation to that folder. Made mysql for wordpress script,
   than made wp-config.php with the model of wp-congif-sample.php and insert mysql
   parameters. Than start [http://www.domain.com/folder](http://www.domain.com/folder)
   and install wordpress. Everything is ok, but when try to eneter dashboard or 
   anything in admin it redirect me to [http://www.domain.com](http://www.domain.com)
   
   I have .htacess file in the root and that file is for other (root) main script.
   It looks:
 * #Options +FollowSymLinks
    AddDefaultCharset UTF-8 <IfModule mod_rewrite.c> RewriteEngine
   On RewriteBase //
 * RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d RewriteCond%{
   REQUEST_FILENAME} !-l # Main URL rewriting. RewriteRule ^(.*)$ index.php?$1 [
   L,QSA] </IfModule>
 * ## DISABLE HOTLINKING
    RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond%{
   HTTP_REFERER} !^http://(www\.)/?domain.com?.*$ [NC] RewriteRule .*\.(gif|jpg|
   jpeg|bmp|png|js|css)$ [http://www.domain.com/](http://www.domain.com/) [R,NC]
 * ## Send to WWW.
    RewriteCond %{HTTP_HOST} !^www\.domain\.com RewriteRule ^(.*)
   $ [http://www.domain.com/](http://www.domain.com/)
 * ErrorDocument 400 [http://www.domain.com/](http://www.domain.com/)
    ErrorDocument
   401 [http://www.domain.com/](http://www.domain.com/) ErrorDocument 403 [http://www.domain.com/](http://www.domain.com/)
   ErrorDocument 404 [http://www.domain.com/](http://www.domain.com/) ErrorDocument
   500 [http://www.domain.com/](http://www.domain.com/)
 * Maybe there is problem, I don’t know?
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [14 years, 8 months ago](https://wordpress.org/support/topic/subdirectory-install-problem/#post-2286211)
 * Yeah, you’re doing it the hard(er) way 🙂
 * Okay Try this on.
 * 1) Copy the files into domain.com/wordpress
    2) Create a database 3) Go to [http://domain.com/wordpress](http://domain.com/wordpress)
   in your browser and follow the directions there.
 * As for your .htaccess, was that the one from your ROOT install (which IIRC is
   not WordPress) or from the /wordpress folder?
 *  Thread Starter [yucarp](https://wordpress.org/support/users/yucarp/)
 * (@yucarp)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/subdirectory-install-problem/#post-2286212)
 * Hi. I did that. Copied all files in subfolder, but when navigate to the installation(
   subfolder) word press told me that I have to create wp-config.php what I did.
   I followed directions after, but problem persist.
    There is now just one .htacess
   file in the root which I sent you up. There is no .htacess in subfolder where
   is wordpress installation and wp files. Can that be so big problem, I was not
   only sure?
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [14 years, 8 months ago](https://wordpress.org/support/topic/subdirectory-install-problem/#post-2286249)
 * Are you copying the files from your other install or are you uploading them fresh
   from a WordPress zip?
 * Not having a .htaccess in your subfolder just means you can’t use Pretty Permalinks.
   Don’t worry about that yet.
 * Thing here is, IF you could get to domain.com/subfolder and go through the WordPress
   steps to install, then you WERE able to get into the subfolder for a while, right?
 *  Thread Starter [yucarp](https://wordpress.org/support/users/yucarp/)
 * (@yucarp)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/subdirectory-install-problem/#post-2286255)
 * Yes that is right. I copied fresh installation in subfolder. I am able to go 
   to subfolder, and get installation instruction, but when install wp, everything
   is ok, but when try to go to admin, there appears wp-login.php, when put user
   and password than it returns me to the [http://www.domain.com](http://www.domain.com).
   I was trying to fix that and think that is error 500, which is defined at htacess
   file which I post here. All folder wp-admin is trapped, but cant figure why?
 *  Thread Starter [yucarp](https://wordpress.org/support/users/yucarp/)
 * (@yucarp)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/subdirectory-install-problem/#post-2286256)
 * Problem solved:
 * [http://lee-jones.com/blog/fix-error-500-internal-server-error/](http://lee-jones.com/blog/fix-error-500-internal-server-error/)
 * Thanks for your time Ipstenu!
 *  [helle1979b](https://wordpress.org/support/users/helle1979b/)
 * (@helle1979b)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/subdirectory-install-problem/#post-2286373)
 * Hi Ipstenu
 * I hope you see this post as it seems like you know a lot about root copied to
   subdirectory and I hope you can help me out.
 * You see … I am not big on development, but here goes. I want to make an English
   site (my current site is in Danish). The site should not be a complete copy on
   content, but the theme will be the same. So I copied my entire setup from the
   root on the ftp to a new /en folder I created.
 * Now, I wanted to make a second database for the English site but that is not 
   possible with my host. So my friend created new $table prefixes in the database
   and added a site url so I thought it would work – and so did he. But when entering
   [http://www.domain.com](http://www.domain.com) I get an 500 error and it is not
   possible to log into [http://www.domain.com/en/wp-admin](http://www.domain.com/en/wp-admin)
 * I am really lost here and has spent ages searching but I cant seem to find out
   what is wrong. I am not a coder though, so it may be why. So tonight I tried 
   changing the $tables prefix section of the wp-config.php file to the new name,
   but it did not do any difference. I also tried changing the index.php header 
   file to /en, but that does not help either.
 * So I changed it back to the normal copy of my install in the root.
 * Well … I hope you can help me out ….
 * Thanks for taking the time to read this.
 * Kind regards,
    Helle

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Subdirectory install problem’ is closed to new replies.

## Tags

 * [redirect](https://wordpress.org/support/topic-tag/redirect/)
 * [subdirectory](https://wordpress.org/support/topic-tag/subdirectory/)
 * [subfolder](https://wordpress.org/support/topic-tag/subfolder/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 12 replies
 * 3 participants
 * Last reply from: [helle1979b](https://wordpress.org/support/users/helle1979b/)
 * Last activity: [14 years, 5 months ago](https://wordpress.org/support/topic/subdirectory-install-problem/#post-2286373)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
