0
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?
0
This is my htaccess
<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>
<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>
<IfModule LiteSpeed>
RewriteEngine on
CacheLookup on
RewriteRule .* - [E=Cache-Control:no-autoflush]
RewriteRule .litespeed_conf.dat - [F,L]
RewriteCond %{HTTP_USER_AGENT} Mobile|Android|Silk/|Kindle|BlackBerry|Opera\ Mini|Opera\ Mobi [NC]
RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+ismobile]
RewriteRule wp-content/./[^/](responsive|css|js|dynamic|loader|fonts).php - [E=cache-control:max-age=3600]
RewriteRule favicon.ico$ - [E=cache-control:max-age=86400]
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]
CacheKeyModify -qs:fbclid
CacheKeyModify -qs:gclid
CacheKeyModify -qs:utm*
CacheKeyModify -qs:_ga
</IfModule>
<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>
0
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
mod_rewite
is enabled and configured to use .htaccess
from site folder.htaccess
file is successfully uploaded and exists in the main directory of SMAbase_url
in app/config/config.phpIf 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
We use Cookies
We use cookies to ensure that we give you the best experience on our website. By continuing to browse the site you are agreeing to our use of cookies.
Please visit https://tecdiary.com for purchase, support and all other tasks. If you find any bug/error there, please do inform us. Thank you