• 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 everything is fine,
    but when type 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 (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)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Are you using WordPress or do you have two separate installs on two separate databases?

    Thread Starter yucarp

    (@yucarp)

    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)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    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

    (@yucarp)

    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)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    How did you install WP to begin with?

    Thread Starter yucarp

    (@yucarp)

    I made folder in 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 and install wordpress. Everything is ok, but when try to eneter dashboard or anything in admin it redirect me to 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/ [R,NC]

    ## Send to WWW.
    RewriteCond %{HTTP_HOST} !^www\.domain\.com
    RewriteRule ^(.*)$ http://www.domain.com/

    ErrorDocument 400 http://www.domain.com/
    ErrorDocument 401 http://www.domain.com/
    ErrorDocument 403 http://www.domain.com/
    ErrorDocument 404 http://www.domain.com/
    ErrorDocument 500 http://www.domain.com/

    Maybe there is problem, I don’t know?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

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

    (@yucarp)

    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)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    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

    (@yucarp)

    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. 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

    (@yucarp)

    Problem solved:

    http://lee-jones.com/blog/fix-error-500-internal-server-error/

    Thanks for your time Ipstenu!

    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 I get an 500 error and it is not possible to log into 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.