Question: 404 Error Login In Hostinger

404 Error Login In Hostinger

After a successful installation on hostinger, when trying to access my page: "subdomain.domain.com" I get a 404 error. Reading other similar posts I understand that I have to modify the htac

K

kevin

Asked
After a successful installation on hostinger, when trying to access my page: "subdomain.domain.com" I get a 404 error. Reading other similar posts I understand that I have to modify the htaccess, is that correct? Or what can I do, I don't understand the help instructions in the other posts?
  • K

    kevin

    Answered
    This is my htaccess

    # BEGIN HMWP_RULES
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^([_0-9a-zA-Z-]+/)?newlogin$ /wp-login.php [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?newlogin/(.*) /wp-login.php$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?lostpass$ /wp-login.php?action=lostpassword [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?register$ /wp-login.php?action=register [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?core/modules/9f62d323d8/(.*) /wp-content/plugins/all-in-one-wp-security-and-firewall/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?core/modules/d0f4711431/(.*) /wp-content/plugins/hide-my-wp/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?core/modules/966a9fe7d2/(.*) /wp-content/plugins/litespeed-cache/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?core/modules/419eb9d0d9/(.*) /wp-content/plugins/loftloader/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?core/modules/e5a8932438/(.*) /wp-content/plugins/nicepage/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?core/modules/4fb37d17ee/(.*) /wp-content/plugins/no-right-click-images-plugin/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?core/modules/d41a5661c4/(.*) /wp-content/plugins/secupress/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?core/modules/d80926959a/(.*) /wp-content/plugins/simple-site-map-page/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?core/modules/1c20bdd4c2/(.*) /wp-content/plugins/wp-bulk-delete/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?core/modules/f9c7f63a6a/(.*) /wp-content/plugins/wordpress-seo/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?core/modules/(.*) /wp-content/plugins/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?core/views/7c20a61ab5/design.css$ /wp-content/themes/Plugin_paginas/style.css [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?core/views/7c20a61ab5/(.*) /wp-content/themes/Plugin_paginas/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?core/views/f1dfeb5569/design.css$ /wp-content/themes/twentytwenty/style.css [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?core/views/f1dfeb5569/(.*) /wp-content/themes/twentytwenty/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?core/views/96f874eecb/design.css$ /wp-content/themes/twentytwentyone/style.css [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?core/views/96f874eecb/(.*) /wp-content/themes/twentytwentyone/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?core/views/a37e87dcf0/design.css$ /wp-content/themes/twentytwentythree/style.css [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?core/views/a37e87dcf0/(.*) /wp-content/themes/twentytwentythree/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?core/views/70da61391b/design.css$ /wp-content/themes/twentytwentytwo/style.css [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?core/views/70da61391b/(.*) /wp-content/themes/twentytwentytwo/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?core/views/(.*) /wp-content/themes/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?storage/(.*) /wp-content/uploads/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?core/(.*) /wp-content/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?lib/(.*) /wp-includes/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?comments/(.*) /wp-comments-post.php$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?writer/(.*) /author/$2 [QSA,L]
    </IfModule>


    # END HMWP_RULES
    # BEGIN HMWP_VULNERABILITY
    <IfModule mod_headers.c>
    Header always unset x-powered-by
    Header always unset server
    ServerSignature Off
    </IfModule>

    <IfModule mod_headers.c>
    Header set Strict-Transport-Security "max-age=63072000"
    Header set Content-Security-Policy "object-src 'none'"
    Header set X-XSS-Protection "1; mode=block"
    Header set X-Content-Type-Options "nosniff"
    </IfModule>



    # END HMWP_VULNERABILITY

    # BEGIN LSCACHE
    ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
    <IfModule LiteSpeed>
    RewriteEngine on
    CacheLookup on
    RewriteRule .* - [E=Cache-Control:no-autoflush]
    RewriteRule \.litespeed_conf\.dat - [F,L]

    ### marker MOBILE start ###
    RewriteCond %{HTTP_USER_AGENT} Mobile|Android|Silk/|Kindle|BlackBerry|Opera\ Mini|Opera\ Mobi [NC]
    RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+ismobile]
    ### marker MOBILE end ###

    ### marker CACHE RESOURCE start ###
    RewriteRule wp-content/.*/[^/]*(responsive|css|js|dynamic|loader|fonts)\.php - [E=cache-control:max-age=3600]
    ### marker CACHE RESOURCE end ###

    ### marker FAVICON start ###
    RewriteRule favicon\.ico$ - [E=cache-control:max-age=86400]
    ### marker FAVICON end ###

    ### marker WEBP start ###
    RewriteCond %{HTTP_ACCEPT} "image/webp"
    RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+webp]
    RewriteCond %{HTTP_USER_AGENT} iPhone.*Version/(\d{2}).*Safari
    RewriteCond %1 >13
    RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+webp]
    ### marker WEBP end ###

    ### marker DROPQS start ###
    CacheKeyModify -qs:fbclid
    CacheKeyModify -qs:gclid
    CacheKeyModify -qs:utm*
    CacheKeyModify -qs:_ga
    ### marker DROPQS end ###

    </IfModule>
    ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
    # END LSCACHE
    # BEGIN NON_LSCACHE
    ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
    ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
    # END NON_LSCACHE
    # BEGIN WordPress
    # Las directivas (líneas) entre «BEGIN WordPress» y «END WordPress» son
    # generadas dinámicamente y solo deberían ser modificadas mediante filtros de WordPress.
    # Cualquier cambio en las directivas que hay entre esos marcadores serán sobrescritas.
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?newlogin$ /wp-login.php [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?newlogin/(.*) /wp-login.php$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?lostpass$ /wp-login.php?action=lostpassword [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?register$ /wp-login.php?action=register [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?core/modules/9f62d323d8/(.*) /wp-content/plugins/all-in-one-wp-security-and-firewall/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?core/modules/d0f4711431/(.*) /wp-content/plugins/hide-my-wp/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?core/modules/966a9fe7d2/(.*) /wp-content/plugins/litespeed-cache/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?core/modules/419eb9d0d9/(.*) /wp-content/plugins/loftloader/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?core/modules/e5a8932438/(.*) /wp-content/plugins/nicepage/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?core/modules/4fb37d17ee/(.*) /wp-content/plugins/no-right-click-images-plugin/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?core/modules/d41a5661c4/(.*) /wp-content/plugins/secupress/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?core/modules/d80926959a/(.*) /wp-content/plugins/simple-site-map-page/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?core/modules/1c20bdd4c2/(.*) /wp-content/plugins/wp-bulk-delete/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?core/modules/f9c7f63a6a/(.*) /wp-content/plugins/wordpress-seo/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?core/modules/(.*) /wp-content/plugins/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?core/views/7c20a61ab5/design.css$ /wp-content/themes/Plugin_paginas/style.css [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?core/views/7c20a61ab5/(.*) /wp-content/themes/Plugin_paginas/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?core/views/f1dfeb5569/design.css$ /wp-content/themes/twentytwenty/style.css [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?core/views/f1dfeb5569/(.*) /wp-content/themes/twentytwenty/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?core/views/96f874eecb/design.css$ /wp-content/themes/twentytwentyone/style.css [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?core/views/96f874eecb/(.*) /wp-content/themes/twentytwentyone/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?core/views/a37e87dcf0/design.css$ /wp-content/themes/twentytwentythree/style.css [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?core/views/a37e87dcf0/(.*) /wp-content/themes/twentytwentythree/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?core/views/70da61391b/design.css$ /wp-content/themes/twentytwentytwo/style.css [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?core/views/70da61391b/(.*) /wp-content/themes/twentytwentytwo/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?core/views/(.*) /wp-content/themes/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?storage/(.*) /wp-content/uploads/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?core/(.*) /wp-content/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?lib/(.*) /wp-includes/$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?comments/(.*) /wp-comments-post.php$2 [QSA,L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?writer/(.*) /author/$2 [QSA,L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress
  • MS

    Mian Saleem

    Answered
    Hello,

    Please make sure that you have uploaded the `.htaccess` file.

    FAQ from documentation.pdf

    ---

    **Why am I getting 404 Not Found error after installation?**

    Please

    1. make sure that your apache `mod_rewite` is enabled and configured to use `.htaccess` from site folder
    2. check that `.htaccess` file is successfully uploaded and exists in the main directory of SMA
    3. `base_url` in app/config/config.php

    If you are using godaddy, please visit the codeigniter official guide here. You might need to check and modify you `.htaccess` files too.

    ---

    You can upload the file or create with these contents

    ```
    DirectoryIndex index.php index.html

    <IfModule mod_rewrite.c>

    RewriteEngine On
    # RewriteBase /basepath/
    RewriteCond $1 !^(index\.php|assets|install|update)
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d

    # For godady Shared Hosting Server uncomment the line below
    RewriteRule ^(.*)$ index.php?/$1 [L]

    # Please comment this if you have uncommented the above
    # RewriteRule ^(.*)$ index.php/$1 [NC,L,QSA]

    </IfModule>

    ```

    Thank you
  • Login to Reply