1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

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