Skip to content

Instantly share code, notes, and snippets.

@pauloharaujos
Last active July 14, 2017 14:09
Show Gist options
  • Save pauloharaujos/ad6c483bb4cbb6317d8a82508e5a36f0 to your computer and use it in GitHub Desktop.
Save pauloharaujos/ad6c483bb4cbb6317d8a82508e5a36f0 to your computer and use it in GitHub Desktop.
Error 404 - Home Magento 1
Possible Solutions :
-> Problem with virtualhost - Open the store without virtualhost -> load categories -> open the store with virtualhost.
-> Case of Index.php
-> Wrong Store Code
-> Secure and Unseruce URL problems (database and admin Magento) - check database ()
- Open your core_config_data table in phpMyAdmin.
- Sort table by path column and find the following rows for your unsecure section, they should look like the following:
Columns
PATH VALUE
web/unsecure/base_url http://www.example.com/
web/unsecure/base_link_url {{unsecure_base_url}}
web/unsecure/base_skin_url {{unsecure_base_url}}skin/
web/unsecure/base_media_url {{unsecure_base_url}}media/
web/unsecure/base_js_url {{unsecure_base_url}}js/
-Replace http://www.example.com/ with your appropriate domain url (trailing slash necessary) and if you’ve installed in a subfolder append it with a / after it.
- Find the following rows for your secure section, they should look like the following:
Columns
PATH VALUE
web/secure/base_url https://www.example.com/
web/secure/base_link_url {{secure_base_url}}
web/secure/base_skin_url {{secure_base_url}}skin/
web/secure/base_media_url {{secure_base_url}}media/
web/secure/base_js_url {{secure_base_url}}js/
- Replace https://www.example.com/ with your appropriate domain url (trailing slash necessary) and if you've installed in a subfolder append it with a / after it. If you haven't received your security certificate and enabled TLS/SSL yet, use http instead of https
- Clear contents from var/cache, var/session directories after changing base_urls.
-> Clearing cache and sessions is necessary because your config is cached and clearing it forces a reread of the configuration data from the core_config_data table and reestablishment of sessions with the proper information.
-> Clear contents from var/cache, var/session directories after changing base_urls. Clearing cache and sessions is necessary because your config is cached and clearing it forces a reread of the configuration data from the core_config_data table and reestablishment of sessions with the proper information.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment