Hello everybody, I have canonical issue in my website. I want to redirect "ruraltraveller.com" and "www.ruraltraveller.com/index.php" to "www.ruraltraveller.com" so please suggest me how I will do this using .htaccess. If possible please give me code snippet for that as well. Thanks in advance.

This is the code...
<?
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://www.new-url.com" );
?>

Thnx...:)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.