WordPress.org

Ready to get started?Download WordPress

Forums

htaccess issue (8 posts)

  1. dlawrence
    Member
    Posted 2 years ago #

    I have a line in my htaccess which redirects from .html to .php... its now causing issues with the image editor... the line reads: RewriteEngine On
    RewriteRule (.+)\.html?$ http://site.com/$1/ [R=301,L] and resides BEFORE the wordpress directives.. any help with this? and why its suddenly causing issues?

    This is a single wordpress install on 3.3.1...

  2. esmi
    Forum Moderator
    Posted 2 years ago #

    its now causing issues with the image editor

    And what makes you think this?

  3. dlawrence
    Member
    Posted 2 years ago #

    because when the line is in htacess.. the image editor doesn't work.. it redirects to the 404 page..without the line.. it works fine.. this has only occured since update to wordpress.

  4. esmi
    Forum Moderator
    Posted 2 years ago #

    Have you tried moving it to after the WP block?

  5. dlawrence
    Member
    Posted 2 years ago #

    yes.. any placement of that line borks the image editor within a post. going to the media center to edit works fine.. but if I want to edit an image after its placed in a post it goes to 404.. fresh wordpress 3.3.1, with no plugins active (yes I reset them).

  6. esmi
    Forum Moderator
    Posted 2 years ago #

    Can I ask how old the site is and how it is since you've had .html pages on there?

  7. dlawrence
    Member
    Posted 2 years ago #

    the site itself is a few months old.(from blogger where it existed for several years). there was a point where all of her posts/pages used an .html extension (don't ask) google was still/is still cataloging those for what ever reason.. and 404's without the line in htaccess..

  8. esmi
    Forum Moderator
    Posted 2 years ago #

    Try:

    RedirectMatch 301 (.*)\.html$ http://site.com/$1

Topic Closed

This topic has been closed to new replies.

About this Topic