Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2008
    Posts
    627
    Plugin Contributions
    0

    Default 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.

    Code:
    # 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.

  2. #2
    Join Date
    Mar 2010
    Location
    UK
    Posts
    445
    Plugin Contributions
    0

    Default Re: htacces and recommeneded code

    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.

 

 

Similar Threads

  1. Preventing products from showing up for customers
    By barfoomoo in forum General Questions
    Replies: 3
    Last Post: 20 Oct 2010, 10:24 AM
  2. Preventing Orders From Northern Ireland
    By pace in forum General Questions
    Replies: 4
    Last Post: 15 Aug 2010, 12:16 PM
  3. Preventing Children from placing orders
    By BeverlyE in forum Customization from the Admin
    Replies: 3
    Last Post: 1 Oct 2007, 06:31 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg