404 pages on magento admin and subpages - magento

I am working on a Magento page then after a while I couldn't access my admin anymore
Not Found
The requested URL /magento/chkbackoffice_admin was not found on this server.
also other subpages except for the homepage are inaccessible as well. The site's location is on my VirtualBox's TurnkeyLinux.
I have already restarted the appliance but still same error. Also copied the original directory of the codebase to replace the current site but same error persists. What should I do? Thanks in advance.

Related

The requested page can't be found

I'm a new beginner to Joomla. I'm trying to build a website with a sub domain of joomla (free sub domain). After successfully setting up and installing the database plus other components according to several beginners' tutorials, where I successfully upload several templates, I try to test the link of my website but all I get is this error message:
The requested page can't be found.
An error has occurred while processing your request.
You may not be able to visit this page because of:
an out-of-date bookmark/favourite
a mistyped address
a search engine that has an out-of-date listing for this site
you have no access to this page
Search
You may wish to search the site or visit the home page.
Search ...
Search ...
Home Page
If difficulties persist, please contact the System Administrator of this site and report the error below.
404 Article not found
How can I really go about solving this issue because after intensive research I have found out that this error message is very common for beginners when it comes to Joomla.
Some Suggestions:
SEF URLS
Try using a non-SEF URL to access an article to see if that works.
For example, check in Content -> Articles for a valid published article ID (the article IDs are in the last column at the right hand side of the page) and access the page using a URL like this:
http://[your-domain-name].com/index.php?option=com_content&view=article&id=xx
where xx is the article ID.
If this works, then your problem has something to do with SEF URLs or URL Rewriting.
You can temporarily disable SEF URLs and URL Rewriting in the Global Configuration.
.htaccess
A badly configured .htaccess file could cause this issue.
Assuming the .htaccess file exists in the root folder of your website (e.g. in the /public_html folder) then try copying .htaccess to .htaccess.old as a backup and reset the .htaccess file to the default settings by copying htaccess.txt to .htaccess.
htaccess.txt should also be found in the root folder of your website as part of a normal Joomla install.
Test whether this fixes the issue.
Third Party Extensions
Try disabling any SEF related third party extensions.

Magento homepage appears and not the intended website

I have restored magento website from a backup. I have restored files and database without any issues. Also, I did configuration in local.xml file with the DB credentials.I am getting Magento home page now.
But I restored my custom website, so my home page should be that instead of a magento home page. Can someone please help me where I would be going wrong. Any ideas or thoughts would be really appreciated.
FYI, this is hosted in GoDaddy VPS with cpanel.
check in admin CMS-> pages home page is active and its configuration/design is correct in cms

URL rewrites do not work after moving Magento installation to new server

After duplicating our web store onto a new server, copying the database over and changing the base url/safe base url in the db, all we get from the copied installation is the front page. That is, no custom url redirects work (for products, the admin panel, etc.), they all result in a 404 (and not the magento 404, the server default). Do you have any ideas what I could check out? Could there be an issue with one of the libraries included in magento?
I tried reindexing with /shell/indexer.php - which executed successfully but didn't fix the redirects.
Any ideas? Note I cannot access the admin panel via /admin because of this issue.
Edit: solution was .htaccess file missing in root directory
I added the sample htaccess file from the magento installation (I uploaded a copy in case someone finds it useful: http://sdrv.ms/13mw8Ok), and mod_rewrite was activated the next time I visited the site.
Make sure your vhosts file is setup correctly to allow mod_rewrite
Make sure your .htaccess file is setup correctly
How to enable mod_rewrite for Apache 2.2
You can access your admin through /index.php/admin in the meanwhile.

Magento Admin 404 after sessions expire

We have just moved our joomla/magento site to a new server. We are now getting some intermittant 404 errors for the magento admin panel
We are able to use the Magento Admin periodically. After a couple of hours we will start getting a 404 after logging in. Once we manually clear the magento cache it starts to work again.
When we start getting the 404 the issue appears to be related to the URL.
Our setup is:
Joomla is in the root directory.
Magento (1.5.0.1) is in a sub-directory /magento
When the Admin panel (www.oursite.com.au/magento/_admin) is working the url after login is
https://www.oursite.com.au/magneto/index.php/_admin/..........
When the 404 starts occuring the url drops the 'magento' out of the url and becomes
https://www.oursite.com.au/index.php/_admin/............
After manually cleaning the magneto cache the issue is resolved. After a few hours it starts to occur again.
Any help would be appreciated.
Well I found the solution to the problem that we have been having.
Some where along the line the permissions of the magento/var/cache directory where incorrect. Apparently if magento can't write to this directory it starts writing to the global /tmp directory.
This post on the magento forum has the info and solution:
http://www.magentocommerce.com/boards/v/viewthread/282544/#t391174
Hope it helps someone.

Magento not using appropriate URL - 404 Page not found

I have a magento site running locally using WAMP and it works great. However I need to create a different site so I created a folder for this new site under htdocs.
In that folder I loaded the Magento files.
Created a new database for newsite with all rights in phpmyadmin.
Went to the localhost:8888/newsite and started Magento installation wizard.
In the configuration section of the wizard I entered all the info required: db name, user, password. For URL Base I used the default (http://localhost:8888/newsite). Selected allow charts and Allow apache rewrites. Finished installing magento.
Now magento is running on newsite. I can see the front and back-end of the site.
Here is the problem: When I create a category and/or subcategory, magento does create the menu link but when I click any category, the browser takes me to a 404 not found. Upon analyzing the URL that took me there i see that the URL is : http://localhost:8888/newsite/category.html BUT by adding "index.php" into the URL (http://localhost:8888/newsite/index.php/category.html , the page does work!
So this means magento IS creating the page for the category but the linking is somewhat wrong.
Now, I've been making sure that rewrite is enabled and after all, the other site I mentioned I have is working properly, so I assume rewrite is properly enabled.
So I need help finding:
Why is one site working and the other isn't?
How can I fix this issue?
Thank you!
Sounds like you haven't copied over the .htaccess file (in your Magento root folder). You need this file for the Apache rewrites to work.

Resources