dlawrence
Member
Posted 1 year 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...
its now causing issues with the image editor
And what makes you think this?
dlawrence
Member
Posted 1 year 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.
Have you tried moving it to after the WP block?
dlawrence
Member
Posted 1 year 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).
Can I ask how old the site is and how it is since you've had .html pages on there?
dlawrence
Member
Posted 1 year 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..
Try:
RedirectMatch 301 (.*)\.html$ http://site.com/$1