Forums / General Questions / htacces preventing me from logging in to my wordpress?

htacces preventing me from logging in to my wordpress?

Locked

Views: 511

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
26 Mar 2010, 3:17 PM
#1
buildingblocks avatar

buildingblocks

Totally Zenned

Join Date:
Jun 2008
Posts:
629
Plugin Contributions:
0

htacces preventing me from logging in to my wordpress?

My zencart is installed in my public_html and my wordpress is installed into a subfolder.

I just noticed that this piece of code inserted into my store root htaccess file prevents me from logging into my wordpress admin.

# redirects any URL that includes: /images/wp- with 'wp-' being anything that ends with '.php'
# this allows for images named such as 'wp-header.jpg' to work
RedirectMatch Permanent ^/(.*[images]+)/(wp-.*\.php)$ /page_not_found.php

How important is this code for zen cart? And if it is kinda important is there a work around so it can remain in place and not have it affect logging into my WP admin?


*oh gosh my title spelling is atrocious. I really do know how to spell.

24 Apr 2010, 1:48 AM
#2
g1smd avatar

g1smd

Zen Follower

Join Date:
Mar 2010
Location:
UK
Posts:
449
Plugin Contributions:
0

Re: htacces preventing me from logging in to my wordpress?

Change the rule to use RewriteRule instead of RedirectMatch.

Add a preceding negative match RewriteCond looking at the requested path.

Set it so that it excludes requests for the zencart folder from activating the rule.

Online since 1995.