WordPress.org

Ready to get started?Download WordPress

Forums

WordPress .htaccess redirect Case and Extension (1 post)

  1. kw1royalladv
    Member
    Posted 3 years ago #

    I installed a plugin that places .htm to all pages/posts. I want to create a redirect for specific pages so that if a users enters

    mysite.com/WP-SITE/alpha-POST.html

    they get redirected to

    mysite.com/wp-site/alpha-post.htm (this .htm exists already)

    I want to do two things. 1)Redirect .html to .htm for specific pages (no need to do a general rule for all .html requests to redirect to .htm). 2) Ignore the case of the .html request.

    I tried something like this:
    RewriteRule ^MYPAGES/some-Page.html$ /mypages/some-page.htm [QSA,NC,R=301]

    Can anyone point me to a post that discusses this or something similar or point me to useful resources? Or if anybody can help me here on the spot, that would be great! (I've been searching the web for almost a week for answers and can't seem to find something that will satisfy the combination of my requests)

Topic Closed

This topic has been closed to new replies.

About this Topic