Forum Moderators: open
My problem relates to my new website and search engines.
I've updated a website from a previous designed ( last done 5 years ago ).
In google, bing etc, when i type my company name, the engine comes up with "www.#*$!xx.com/main.htm" which is a htm file from the old website.
I would like to get rid of the main.htm and have the search engine pick: "www.#*$!xx.com" or "www.#*$!xx.com/index.html".
Should I
1. make a copy of my index.html and label it main.htm?
2. just don't have a main.htm and wait a month for the search engines to update the missing link.
3. do a page redirect
I would like something long term, and think opt 2 is the best, but may lose traffic for a while. I think opt 1 is not ideal as its just addressing the main problem.
Many thanks in advance.
MFox
Declare /index.html as the DirectoryIndex file.
301-permanently redirect only direct client requests for /index.html and *any* requests for /main.htm to www.example.com/
(It is necessary to detect direct client requests for /index.html and to redirect only those in order to prevent a potential infinite loop after the DirectoryIndex function internally rewrites requests for "/" to /index.html.)
How you do this depends on your server type and your coding preferences.
Jim
If this is the case, use an FTP client that can be set to show system files -- often by allowing you to re-define the "directory listing" command ("ls") to "ls -al", which shows everything.
The open-source FileZilla and many other FTP clients can do this.
Jim