• Hello

    On apache2 after some mysql problems the WordPress Home page and the from admin page is now showing, albeit a few images not showing.

    I also notice that I get a 404 when I try to go to any other page from there, in both admin and front sides.

    I can’t even get to the admin to check the permlinks.

    Any help please?

    • This topic was modified 1 year, 10 months ago by ozstar.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Try adding a .htaccess file into the root folder. With this inside file :

    
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    Thread Starter ozstar

    (@ozstar)

    Thank you, however that didn’t fix anything.

    Maybe this will help//

      The Front side

    I can get to the front page with 192.169.20.83/mysite however some front page images are missing from the Gallery.

    When I click to go to a page link, this is the url

      https://192.168.20.83/mysite/?page_id=71

    but I get the dreaded

      Not Found
      The requested URL was not found on this server.
      Apache/2.4.41 (Ubuntu) Server at 192.168.20.83 Port 80

    I notice from other PC’s on the LAN I only see the text of the front page none of the them or images, yet on the PC I work on I do see it all.
    ——————-
    Admin Side

    I get the Admin login and can log in and see the admin page.
    When I click on the left menu I can get to all the links okay.
    When I click on pages, they all show on the list and I can get to them from ‘Edit’.

    When in the page though there is no image showing but the message..

      ‘The image has an empty alt attribute and then gives the image file name’

    In the Permalinks area I see.

      https://localhost/mysite/?p=123 etc.

    In Site Health Info Contstants I see.

      ABSPATH	/var/www/mysite/
      WP_HOME	https://localhost/mysite
      WP_SITEURL	https://localhost/mysite
      WP_CONTENT_DIR	/var/www/mysite/wp-content
      WP_PLUGIN_DIR	/var/www/mysite/wp-content/plugins

    I am not sure what else to show, but I need help to get to my pages.

    Thanks

    Thread Starter ozstar

    (@ozstar)

    Thank you. Yes I checked them again.

    I have just noticed that the links that work are all ‘localhost/blah’ and those with the local IP# ‘192.168.20.83/blah’ go to the 404.

    Is there a place or list that shows every page, and image and their links address so I can change them all to localhost?

    Thanks for the help

    • This reply was modified 1 year, 10 months ago by ozstar.

    1. In général site options, site address and home URL fields : make sure locolhost IS used and not IP.
    2. Eventualy try better search replace extension to change strings : IP to ‘localhost’
    Cheers

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘404 when going to another page from Home’ is closed to new replies.