Redirect some .htm page to WordPress page without path and query string

Discussion in 'Apache' started by jhashan, Jan 5, 2015.

  1. #1
    I want to permanent redirect some .htm page from subdomain to main domain WordPress page, for this I am using this code

    Redirect permanent /cat/FSBO76.htm http://www.example.com/cat/my-favorite/
    Code (markup):
    But I am getting a problem normally my WordPress page working fine but when I click on old link its redirect with trailing query string and showing page not found error.

    http://www.example.com/cat/my-favorite/?cat=FSBO76
    Code (markup):
    Can anyone tell me how can I redirect without path and query string? or any way to solve this problem.

    I already try with Redirect 301 also.
     
    jhashan, Jan 5, 2015 IP
  2. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #2
    That's because you have other rules in your .htaccess that redirects with the ?query - show the complete .htaccess, perhaps?
     
    PoPSiCLe, Jan 5, 2015 IP