I would like to redirect my www.domainname.com/index.htm to www.domainname.com. I also want to re-direct http://domainname.com to http://www.domainname.com Someone suggested me to use will this work ok? anything else you guys suggest?
If this redirects www.domainname.com/index.htm to www.domainname.com, then by default it will take www.domainname.com/index.htm or www.domainname.com/index.html file depending the index priority set by your webserver. Is there any specific file name you want it to redirect?
Not getting what exactly u r looking for. are they both saperate domains?? For redirecting you can write a simple header in the index.html. That wil work
yeah im seeing some confusion here also, what is the primary file you want loaded on the webserver "index.php" for example. Because if your webserver is set to display "index" by default followed by .htm or .html then any redirection will not work as you will simply be looping it and probably result in an error or crash. Please explain which file on domainname.com you want loaded instead of .htm and if it is index.php then just simply remove the .htm and that will solve your problem.