Let's say I have a dedicated IP for a website. Do I need to redirect that IP address to the domain name in the .htaccess or I can leave it like that – I don't want to have duplicate content of the IP (example: 211.123.111.222/index.html) and the url (example: www.website.com/index.html). Thanks
an IP address and a website are 2 different things...NO? And on that same train of thought you cannot redirect an IP to a website. per wikipedia: An Internet Protocol (IP) address is a numerical label that is assigned to devices participating in a computer network that uses the Internet Protocol for communication between its nodes. so an IP address designates your computers network
I will recommend that you don't redirect the IP address (HighRollerT - yes the site can also be accessed with IP address if there is only one virtualhost - apachespeak). You should simply disable access to the IP address.