Question: I am getting a 404 error when trying to go to my admin page was working fine earlier today. Haven't changed anything since I last logged in and the only thing I was doing was assigning products to categories. 

<http://mytempsite.net/gotie/admin>

**WHAT IVE TRIED SO FAR**

Delete the following file:-

app/etc/use\_cache.ser <-- **I could not find the file in ftp or ssh**

then tried doing this
 Opened PhpMyAdmin  

- Went to my database  

- Clicked SQL  

- Ran the following SQL Query:  

SET FOREIGN\_KEY\_CHECKS=0;  

UPDATE `core_store` SET store\_id = 0 WHERE code='admin';  

UPDATE `core_store_group` SET group\_id = 0 WHERE name='Default';  

UPDATE `core_website` SET website\_id = 0 WHERE code='admin';  

UPDATE `customer_group` SET customer\_group\_id = 0 WHERE customer\_group\_code='NOT LOGGED IN';  

SET FOREIGN\_KEY\_CHECKS=1;

Answer: 
First, are you the only admin user?

Second, In your app/etc/local.xml, look for: 

```
<admin>
    <routers>
        <adminhtml>
            <args>
                <frontName><![CDATA[admin]]></frontName>
            </args>
        </adminhtml>
    </routers>
</admin>

```

Does it say admin or something else?

Third, go in your core\_config\_data table and try to locate these variables (lines 226 + 229):

admin/url/custom
admin/url/custom\_path

![core_config_data](https://i.stack.imgur.com/8379L.png)

Do you have any caching enabled, or have any redirects setup? Delete the Cache manually (var/cache/).

I would enable your server logs (a quick look at GoDaddy has this tutorial showing how to do it: [Working with Error Logs](http://support.godaddy.com/help/article/1197/working-with-error-logs)

Attempt to turn on Magento Logging (it should be on for dev sites). You can do this by going into "core\_config\_data" and look for a dev/log/active. It should be set to 1 for logging (yours is probably set to 0).

![Logging](https://i.stack.imgur.com/FEvEj.png)

I would also go further and turn on Developer Mode (which should also be on for dev sites). You can do this by going to your index.php file and changing this:

```
if (isset($_SERVER['MAGE_IS_DEVELOPER_MODE'])) {
Mage::setIsDeveloperMode(true);
}
#ini_set('display_errors', 1);

```

to this:

```
//if (isset($_SERVER['MAGE_IS_DEVELOPER_MODE'])) {
Mage::setIsDeveloperMode(true);
//}
ini_set('display_errors', 1);

```

**After talking to the user, it turns out it was a file error. I referred him to setup a Diff of his core files and setup a version control system.**
make sure that your apache .htaccess are enabled

refer link when you are using ubuntu 15.x:
<https://askubuntu.com/questions/48362/how-to-enable-mod-rewrite-in-apache>