htaccess and category pages

by Korus
4 replies
  • WEB DESIGN
  • |
Hi,

Recently Google has brought to my attention that I have some duplicate issues on my website. The issue is that these two pages are considered the same:
(I replaced www with hhh and http with hhhh since I can't post links yet)

hhh.mywebsiteexample.com/category/
hhh.mywebsiteexample.com/category/index.html


What would I add to my htaccess file so that only hhh.mywebsiteexample.com/category/ is used?

I tried using:
Code:
redirect 301 /category/index.html hhhh://hhh.mywebsiteexample.com/category/
but this just makes some kind of redirection error.

Thanks for your help!
#category #htaccess #pages

Trending Topics