Does the "Index.html" page have to be the first page? I know, the question sounds silly; it may be. I have a website for a Canadian company, we have the rights to company name, but only in Canada. We still are able to sell to the US however only under a different brand name and often we get customers looking for our Canadian brand in the US or our US brand in Canada (and often the customer is unaware that there are two different brands). So if it's possible I'd like the first page to be one where the visitor can select which site to visit, the Canadian one for Canadian visitors or the US one for US visitors. How would I go about setting this up?
When landing on your domain it will have to be index.* but you could always make a second index, like index-us.*. You might be better off having a separate domain if the content is entirely different.
that depends on the server configuration. The top or default document can be set in the settings of the web server. Microsoft uses index.asp for example. t
Yup. It depends on how your server is configured, more specifically in the .htaccess file. Change or add the following value: DirectoryIndex [I]filename.html[/I] Code (markup): You can add additional pages to the end of that too, in case you decide to change it, or use it for a temporary period of time.
..................../Canada/index.html Index .................../US/index.html Simply create a landing page at the root/index.html then let them choose Canada or the US. And build the two site in the two folders. With php or asp you could direct them to the correct folder based on their ip in most cases. How do you plan to deal with the rest of the world? There is more to the Internet than the US and Canada.
Like stated, you can change your .Htaccess file so that the landing page is not index. By default it is index.
This is not generally the case as index.html is top priority however it does depend on your server settings. Steelfrog brought up an excellent point, just make a .htaccess file (if you havent already) and simply define your index file, though you may find its easier to keep with the standard..I do! Dan has a few good tips about structuring your website if you wanna know more: http://webtips.dan.info/subdir.html good luck - A
Thanks so much for all the suggestions and help. If possible I'm going to go with steelfrog and durohost stated. Largely because I have no control over the US site but also I already have an "index" file and I'd rather just leave it alone and direct visitors to where they should go. So... found the .htaccess file no problem on the server. Didn't know how to open it so I defaulted to notepad just to get a look. Here's what it gave me: CaseInsensitive On DirectoryIndex index.html index.htm index.html index.php home.htm default.htm default.html index.shtml default.shtml index.phtml default.phtml index.php default.php index.php3 default.php3 index.wml default.wml index.asp default.asp index.cfm default.cfm Default.aspx default.aspx default.asp Default.asp index.jsp default.jspindex.htm default.htm index.html default.html index.shtml default.shtml index.phtml default.phtml index.php default.php index.php3 default.php3 index.wml default.wml index.asp default.asp index.cfm default.cfm Default.aspx default.aspx default.asp Default.asp index.jsp default.jsp Now I'm assuming there's so many options because the host just made a standard file to cover everyone. If I change the values in notepad to: CaseInsensitive On DirectoryIndex splash.html Will this work? I imagine it will and that unless I change the file type there's no reason to update the rest of directory to splash.xxx
Of cousre not, major server software can automaticly search sequent for index pages like index.html , index.htm , index.asp , index.php and so on .