Nexelit - Multipurpose Website CMS Documentation

  1. Home
  2. Docs
  3. Nexelit – Multipurpose Website CMS Documentation
  4. General Questions
  5. All the pages are throwing 404 except the home screen

All the pages are throwing 404 except the home screen

if you face this issue in your website that, mean you have missed .htaccess file.

login to your cpanel and go to script root folder check there .htaccess file available or not , if not available create one with below code

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews -Indexes
    </IfModule>

    RewriteEngine On

    # Handle Authorization Header
    RewriteCond %{HTTP:Authorization} .
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

    # Redirect Trailing Slashes If Not A Folder...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} (.+)/$
    RewriteRule ^ %1 [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>
Was this article helpful to you? Yes 1 No

How can we help?