I'd just discovered that my web site had redirect from my home page from eg,www.yourdomainname.com ( My original domain name ) to www.yourdomainname.com/index.php which is consider illegal to major search engine ! When I seek the explanation from my web hosting company,they told me it's not their job as it's a code issue and I need to engage web developer to fix it ! May I know is it true ? What should I do in order to put my home page to my original domain name with .com instead of redirect it to .com/index.php ? Thank you.
Have you tried just uploading your index file straight to the root ie...Name your file index and then upload direct to www yourdomain com Is this a help ?
First, when you visit www.website.com server automatically redirects you to www.website.com/index.html It can be also index.php, index.asp etc extension doesn't matter (if it's supported on server to display as a web-page). So, there is no problem. To manage index.php file just go to the root directory (first directory on your ftp, like disc C: on your PC for files), usually it's folder named public_html.
hello artimmi when v upload files to the root folder in the server i feel that everything is done. is there anything more that v have to do??????????
If you see these files when access your website by url (www.yoursite.com), everything is OK. What's the problem?
in your ftp client e.g. dreamweaver link to / (forward slash) instead of index.html. check all links in your site. also you need to upload a .htaccess file
Hi moonshine, What do you mean by the following ? It'll be nice to hear from you for the step-by-step instructions to fix this problem. " Im guessing the code is NOT already on your root file so... have you checked your .htaccess file? "
the index.php is just a default file. When you enter your domain it automatically goes to your index.php page. Sounds like you modified your htaccess file or did a redirect or something at your webhost. It shouldn't matter what whether it's html, php, htm, etc. when you type in yourdomain.com it should automatically default to that page. I normally don't modify the htaccess file or set any redirects at my webhost and it'll default to my index page without the html or php extension.