February 19, 201214 yr Hi, Hoping I could get some advice. I want to add an initial page which a user would land on, i.e. a page which asks the user which language they wish to view the website. What’s the best way to do this, I've done some research, and found a few websites which name this page, 'index.html', and then their actual homepage, 'home.html'. Is this the best way? Thanks EDIT: Using Dreamweaver Edited February 19, 201214 yr by lsj1987
February 19, 201214 yr Not a great idea, to be honest. Search engines would index your homepage but not your landing page, because it has very little content. A visitor may land on your homepage or on an internal page, bypassing your splash page completely. You're much better off providing a language switcher in the header of each page which gives the option of switching to the other language. You could then either store the user's language preference with a cookie, or in a session variable, or simply maintain the site in both languages with each copy having self-contained navigation, only linking to itself (apart from the language switcher link). Edited February 19, 201214 yr by Renaissance-Design
February 19, 201214 yr Author Not a great idea, to be honest. Search engines would index your homepage but not your landing page, because it has very little content. A visitor may land on your homepage or on an internal page, bypassing your splash page completely. You're much better off providing a language switcher in the header of each page which gives the option of switching to the other language. You could then either store the user's language preference with a cookie, or in a session variable, or simply maintain the site in both languages with each copy having self-contained navigation, only linking to itself (apart from the language switcher link). Thanks for the response. I am re-designing a website for a friend, and his currently has the landing page setup. Yes a language switcher would be a better idea, thanks. So to do this, I would have two versions of the site, and provide a button which switches to the welsh site or vise versa?
February 19, 201214 yr Yup. If it's a static site, maintain a copy in each language in its own folder (eg yourdomain.com/en/index.html and yourdomain.com/cy/index.html) and have the switcher link to the equivalent page so /en/index.html links to /cy/index.html and /en/about.html links to /cy/am.html (sorry if the translation's not right - despite living here 30 years I've never quite managed to learn the lingo. Hi from Bridgend, btw.)
February 19, 201214 yr Author Yup. If it's a static site, maintain a copy in each language in its own folder (eg yourdomain.com/en/index.html and yourdomain.com/cy/index.html) and have the switcher link to the equivalent page so /en/index.html links to /cy/index.html and /en/about.html links to /cy/am.html (sorry if the translation's not right - despite living here 30 years I've never quite managed to learn the lingo. Hi from Bridgend, btw.) Okay, get it, thanks for the help, I'll crack on! Good translation as well! Hi from Cardiff! Only down the road, haha!
Create an account or sign in to comment