Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter edemkodzo

    (@edemkodzo)

    @amieiro I am using Aliyun ECS webserver.
    The site was working well then suddenly got an “error establishing database connection” which i solved and now this “Not found” problem.

    Yes @corusx hidden file are all showing but there was no .htaccess file in var/www/html/ except the one I created.
    I found an .htaccess file in var/www/html/wp-content/ai1wm-backups/ and it contains:

    <IfModule mod_mime.c>
    AddType application/octet-stream .wpress
    </IfModule>
    <IfModule mod_dir.c>
    DirectoryIndex index.php
    </IfModule>
    <IfModule mod_autoindex.c>
    Options -Indexes
    </IfModule>

    So I added

    # BEGIN WordPress
    
    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]
    
    # END WordPress

    to the bottom and save it then restarted my server with :sudo apachectl restart
    yet nothing changed. then , I commented this part:

    <IfModule mod_mime.c>
    AddType application/octet-stream .wpress
    </IfModule>
    <IfModule mod_dir.c>
    DirectoryIndex index.php
    </IfModule>
    <IfModule mod_autoindex.c>
    Options -Indexes
    </IfModule>

    by adding a # at the beginning of each line but that still didn’t solve the problem. That’s what lead me to create my own .htaccess file in the var/www/html/ folder. But that also didn’t help!
    My problem is still not solved. I’m yet still getting the : ‘Not Found
    The requested URL /news-feed/ was not found on this server.’ messages. :((

Viewing 1 replies (of 1 total)