.htaccess - htaccess redirect without showing of page= -


on homepage have pages shown multiple times in google while content same. instance:

  • example.com/services.html?page=services-old-page

  • example.com/services.html

both in google, want deleted part of questionmark, no doubles in google. have tried different things , best listed below, still not working:

redirect 301 services-old-page.html http://www.example.com/services.html

rewriterule ^([^/]*)/([^/]*)\.html$ /index.php?page=$2& [l] rewriterule ^([^/]*).html$ /index.php?page=$1 [l]

i hope can me out?


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -