• 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?$ https://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…

Viewing 7 replies - 1 through 7 (of 7 total)
  • its now causing issues with the image editor

    And what makes you think this?

    Thread Starter dlawrence

    (@dlawrence)

    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.

    Have you tried moving it to after the WP block?

    Thread Starter dlawrence

    (@dlawrence)

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

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

    Thread Starter dlawrence

    (@dlawrence)

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

    Try:

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘htaccess issue’ is closed to new replies.