Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6977333
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:36:45+00:00 2026-05-27T17:36:45+00:00

I have a bit of an odd issue. I am porting an old, static,

  • 0

I have a bit of an odd issue.

I am porting an old, static, .htm based site to wordpress and I don’t want to loose any of the indexed “juice” as the old site has been going for 5years or so.

I am using the following line in my htaccess to redirect all *.htm to their wordpress equivalents.

RedirectMatch 301 ^(.*)\.htm$ $1/

This is working fine on every page apart from the index page which insists on redirecting to /index/ when I navigate to http://www.siteurl.com

My full htaccess looks like this

RedirectMatch 301 ^(.*)\.htm$ $1/
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>   
# END WordPress

I am using the /%postname%/ permalink structure (performance issues fixed in 3.3)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T17:36:46+00:00Added an answer on May 27, 2026 at 5:36 pm

    Try replacing your .htaccess with below. Every .htm page except index.htm (which I suspect is the default when you access the home page) will be redirected

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    
    #if the page is not index.htm
    RewriteCond %{REQUEST_URI} !index\.htm$ [NC]
    #redirect it
    RewriteRule ^(.+)\.htm$ $1/ [L]
    
    # BEGIN WordPress
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    # END WordPress
    </IfModule>   
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a bit of an odd issue. I have a projects controller where
I have a little bit of an odd issue. When I run this SQL:
I have what seems to me as a bit of an odd scenario, well
This is a bit of an odd situation. Here's what's happening. So, we have
This is an odd problem, so I have to provide a bit of background.
I know it sounds a bit odd but I have a string: <img src=image1.gif
I have a bit of an odd problem. I have been populating a UITextView
I'm having an odd issue in FF10 using jQuery 1.7.1. I have a gallery
A bit of an odd question and probably backwards from what most people want
I'm having a bit of a odd issue with my height of tables. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.