.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 -

python - Error: Unresolved reference 'selenium' What is the reason? -

asp.net ajax - Jquery scroll to element just goes to top of page -