Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

WP-admin redirecting to 404 page WordPress


Hi Guys

I have just uploaded this site from a back up a previous developer gave me using Backup buddy, had a few issues with it so deleted the .htaccess file so WP would generate a fresh one.

But i still keep getting these 404 messages. I cannot log in via wp-admin as it keeps going to the 404 page.

Usually when I encounter this issue I just log in and save the permalink settings as default to flush the permalink structure and all is well. But not with this one.

Can anyone give me an idea of where to trouble shoot?

Many thank

Answers (2)


Dbranes answers:

What happens if you add this into your <em>.htaccess</em> by hand?

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress

can you then acess the <em>wp-admin</em> ?

Steve Watson comments:

Still the same after adding your .htaccess code.

I cannot access /wp-admin as it redirects to 404 page

I can access the folder wp-admin via ftp

Dbranes comments:

Here is an idea:

To flush the rewrite rules by hand, you could try to add this into your <em>functions.php </em>

function my_flush() {

and try this in your <em>wp-config.php</em>


Steve Watson comments:

Ok i've added the flush code to the functions.php file

I've done site and home url in the myphpadmin area..

I've also managed to change the permalinks back to default via myphpadmin

This has got the other links on the site working but i still can't access wp-admin

On a side note: The images are not showing either so i copied one of the links to see what was going on...

Not sure if that's relevant.

Any thoughts?

Steve Watson comments:

Ok i've just deactivated the plugins by renaming the plugin directory and I'm now in!

I think I can now sort it from here.

thanks for your help Dbranes :)

Dbranes comments:

ok great, renaming the plugin directory is a good trick ;-)

I checked the image

and it's working. But when I add parameters to it, there is a 404:

One can also define the external domains in timthumb.

ps: just make sure you are using a new timthumb version ;-)

Dbranes comments:

ahh, I see the problem, missing ? ;-)

Dbranes comments:

so this is working:

You should try to add to the array <strong>$ALLOWED_SITES </strong> :

[[LINK href=""]][[/LINK]]

Dbranes comments:

ps: it looks like TimThumbs isn't supporting IP numbers.

Steve Watson comments:

Hi Dbranes

unfortunately I dont really understand what you are saying we are in territory I am not used to.

What I do know is that the images for the blog and testimonials page are all added via the featured image function. I tried to remove and reinstall them via the same method but still no joy.

The tim thumb stuff is way over my head and so is the array $allowed_sites stuff.

I've taken this site over from another developer who let the client down, do you think these issues arise from a dodgy theme and coding?

Dbranes comments:

It looks like TimThumb doesn't support addresses like

but only domain names ;-)

Found some pages about it:

So I think that could explain the image problems you have ;-)


Yakir Sitbon answers:

You can PM me and I will setup your data.
I think it's problem with your site domain, but please contact with me in my PM.