SlideShare a Scribd company logo
1 of 9
Error in Admin URL: Causes & Solutions
What is a
404 Error?
404 Error on a website means that the web page you were searching for
was not found. Generally, its because of 2 reasons like:
Entered a
wrong URL
1 Web page
has been
removed
2
In technical terms the 404 or Not Found error is an HTTP standard
response code showing that the client was able to interact with a
distributed server, but the server could not locate what the requested
resource.
Cause
The values of store_id and website_id
should be zero for admin in a Magento
database.
But, these values can vary when store
owners transfer the database to the new
server, and users may face the 404 errors in
Magento admin login page.
Solution
You have to reset the value of store_id and
website_id to zero for admin in the Magento
database.
To reset website_id to 0 in the core_website
table, follow below command,
UPDATE 'core_website' SET website_id =0
WHERE code='admin';
Causes with
Solutions
Database Inconsistencies
Note: Before updating Magento Database, take backup of it for
security.
1
Causes with
Solutions
• The .htaccess file in Magento website includes rewrite rules so
website and links work perfectly.
• But, if the file got deleted or altered by the owners mistakenly
then the rules will not work and can generate 404 errors in
Magento admin login page.
Cause
• First of all, rename your file and check error is gone or not
• If issues are still noted, then correct the misconfiguration in the
.htaccess file.
• And, if .htaccess file is missing, create a new .htaccess file f and
upload it to the root folder.
Solution
Corrupted .htaccess File
2
Causes with
Solutions
Cause :
• The default Magento admin URL:
http://website.com/magento/admin
• But, store owners can modify it.
• But if you custom the admin URL
without setting the
custom_admin_url settings
properly, then you face the 404
error.
Solution :
• Check and fix the Magento admin
URL in the below fields of the
core_config_data table:
• admin/url/use_custom
• admin/url/custom
• web/secure/base_url
• web/unsecure/base_url
Admin URL Customization
3
Causes with
Solutions
If you skip clearing the cache
after performing security
patches, installing or
upgrading an extension,
then Magento admin panel
shows previous data.
Clear the Magento cache using
below the command line
php bin/magento cache:clean
rm -rf var/cache/*
rm -rf var/generation/*
Magento Cache
Cause Solution
4
Causes with
Solutions
Sometimes during
fresh Magento
installation, the
hosting server doesn’t
support mod_rewrite
module, and it
generated a 404 error.
Check web server
configuration file to
verify that the
mod_rewrite module is
enabled on the server.
If it’s not enabled, then
enable it and restart
the web server.
mod_rewrite Disabled
Cause
Solution
5
Conclusion
Here We have discussed the top 5 reasons like a Database issue,
Cache issue etc. for 404 error in a Magento admin URL with the
proper solutions.
But if you feel that any solution is hard or it may damage your
website or its data, then you can contact any Magento Web
Development Services providers and ask them for the help.
Share, and like our presentation! And you can suggest or ask us in
comments.
Contact Us
Europe Office
Via San Felice 4340122
BolognaItaly.
Europemailinfo@aegissofttech.com
India Office
"Royal Square”,
1st Floor, Off No. 110,
Nr. Shilp Tower, Tagore Road,
Rajkot - 360 001, Gujarat -
Indiamailhs@aegissofttech.com

More Related Content

More from Aegis Softtech

Why CRM Outsourcing – CRM Development India
Why CRM Outsourcing – CRM Development IndiaWhy CRM Outsourcing – CRM Development India
Why CRM Outsourcing – CRM Development IndiaAegis Softtech
 
5 best Java Frameworks
5 best Java Frameworks5 best Java Frameworks
5 best Java FrameworksAegis Softtech
 
Top 3 CRM Functional Modules Overview
Top 3 CRM Functional Modules OverviewTop 3 CRM Functional Modules Overview
Top 3 CRM Functional Modules OverviewAegis Softtech
 
Why need managed to Microsoft dynamic AX
Why need managed to Microsoft dynamic AXWhy need managed to Microsoft dynamic AX
Why need managed to Microsoft dynamic AXAegis Softtech
 
10 facts about java programming language
10 facts about java programming language10 facts about java programming language
10 facts about java programming languageAegis Softtech
 
Various entity relation with dynamics CRM
Various entity relation with dynamics CRMVarious entity relation with dynamics CRM
Various entity relation with dynamics CRMAegis Softtech
 

More from Aegis Softtech (6)

Why CRM Outsourcing – CRM Development India
Why CRM Outsourcing – CRM Development IndiaWhy CRM Outsourcing – CRM Development India
Why CRM Outsourcing – CRM Development India
 
5 best Java Frameworks
5 best Java Frameworks5 best Java Frameworks
5 best Java Frameworks
 
Top 3 CRM Functional Modules Overview
Top 3 CRM Functional Modules OverviewTop 3 CRM Functional Modules Overview
Top 3 CRM Functional Modules Overview
 
Why need managed to Microsoft dynamic AX
Why need managed to Microsoft dynamic AXWhy need managed to Microsoft dynamic AX
Why need managed to Microsoft dynamic AX
 
10 facts about java programming language
10 facts about java programming language10 facts about java programming language
10 facts about java programming language
 
Various entity relation with dynamics CRM
Various entity relation with dynamics CRMVarious entity relation with dynamics CRM
Various entity relation with dynamics CRM
 

Recently uploaded

Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Visualising and forecasting stocks using Dash
Visualising and forecasting stocks using DashVisualising and forecasting stocks using Dash
Visualising and forecasting stocks using Dashnarutouzumaki53779
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESmohitsingh558521
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterMydbops
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 

Recently uploaded (20)

Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Visualising and forecasting stocks using Dash
Visualising and forecasting stocks using DashVisualising and forecasting stocks using Dash
Visualising and forecasting stocks using Dash
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL Router
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 

Magento: 5 Causes & Solutions for 404 error in admin URL

  • 1. Error in Admin URL: Causes & Solutions
  • 2. What is a 404 Error? 404 Error on a website means that the web page you were searching for was not found. Generally, its because of 2 reasons like: Entered a wrong URL 1 Web page has been removed 2 In technical terms the 404 or Not Found error is an HTTP standard response code showing that the client was able to interact with a distributed server, but the server could not locate what the requested resource.
  • 3. Cause The values of store_id and website_id should be zero for admin in a Magento database. But, these values can vary when store owners transfer the database to the new server, and users may face the 404 errors in Magento admin login page. Solution You have to reset the value of store_id and website_id to zero for admin in the Magento database. To reset website_id to 0 in the core_website table, follow below command, UPDATE 'core_website' SET website_id =0 WHERE code='admin'; Causes with Solutions Database Inconsistencies Note: Before updating Magento Database, take backup of it for security. 1
  • 4. Causes with Solutions • The .htaccess file in Magento website includes rewrite rules so website and links work perfectly. • But, if the file got deleted or altered by the owners mistakenly then the rules will not work and can generate 404 errors in Magento admin login page. Cause • First of all, rename your file and check error is gone or not • If issues are still noted, then correct the misconfiguration in the .htaccess file. • And, if .htaccess file is missing, create a new .htaccess file f and upload it to the root folder. Solution Corrupted .htaccess File 2
  • 5. Causes with Solutions Cause : • The default Magento admin URL: http://website.com/magento/admin • But, store owners can modify it. • But if you custom the admin URL without setting the custom_admin_url settings properly, then you face the 404 error. Solution : • Check and fix the Magento admin URL in the below fields of the core_config_data table: • admin/url/use_custom • admin/url/custom • web/secure/base_url • web/unsecure/base_url Admin URL Customization 3
  • 6. Causes with Solutions If you skip clearing the cache after performing security patches, installing or upgrading an extension, then Magento admin panel shows previous data. Clear the Magento cache using below the command line php bin/magento cache:clean rm -rf var/cache/* rm -rf var/generation/* Magento Cache Cause Solution 4
  • 7. Causes with Solutions Sometimes during fresh Magento installation, the hosting server doesn’t support mod_rewrite module, and it generated a 404 error. Check web server configuration file to verify that the mod_rewrite module is enabled on the server. If it’s not enabled, then enable it and restart the web server. mod_rewrite Disabled Cause Solution 5
  • 8. Conclusion Here We have discussed the top 5 reasons like a Database issue, Cache issue etc. for 404 error in a Magento admin URL with the proper solutions. But if you feel that any solution is hard or it may damage your website or its data, then you can contact any Magento Web Development Services providers and ask them for the help. Share, and like our presentation! And you can suggest or ask us in comments.
  • 9. Contact Us Europe Office Via San Felice 4340122 BolognaItaly. Europemailinfo@aegissofttech.com India Office "Royal Square”, 1st Floor, Off No. 110, Nr. Shilp Tower, Tagore Road, Rajkot - 360 001, Gujarat - Indiamailhs@aegissofttech.com