404 Not found, for all pages except homepage

DennisMidjord

Well-Known Member
Sep 27, 2016
267
35
28
Denmark
cPanel Access Level
Root Administrator
Seems like the .htaccess has been removed or had its content deleted.
If you're using WordPress, create a .htaccess file in the document root with this content:

Apache config:
# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress
 
  • Like
Reactions: cPanelLauren