WordPress.org

Ready to get started?Download WordPress

Forums

Subdirectory wp-admin 404 error (2 posts)

  1. Skeniver
    Member
    Posted 1 year ago #

    Hi there,

    I have had to re-install Ubuntu on my server, so copied all the wordpress files (/var/www) and have now unzipped them all the to same place again.

    The main site shows fine: http://54.241.13.224/, but not the subdirectory sites (http://54.241.13.224/formidableapps/) unless you visit from their domain (http://formidableapps.co.uk/)

    I also can't access the dashboard for the site (http://54.241.13.224/formidableapps/wp-admin/)

    Links to other pages across all the sites also only work with the default permalink setting (http://54.241.13.224/?page_id=40), not with any others (http://formidableapps.co.uk/mymoney/).

    Does anyone know where I could start looking?

    wp-config.php has multi site enabled (as it was copied from the old setup) and my .htaccess is:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    </IfModule>
    # END WordPress
    
    # Change PHP memory limit, time limit,
    # max post size, and max upload file size
    php_value memory_limit 256M
    php_value max_execution_time 300
    php_value upload_max_filesize 32M
    php_value post_max_size 32M
  2. The main site shows fine: http://54.241.13.224/, but not the subdirectory sites (http://54.241.13.224/formidableapps/) unless you visit from their domain (http://formidableapps.co.uk/)

    Just as an FYI, you can't have both IP and FQDNs (i.e. formidableapps.co.uk). WordPress just doesn't like it, and it won't work, so I suspect this is your problem.

Topic Closed

This topic has been closed to new replies.

About this Topic