2 Replies Latest reply on Oct 29, 2007 6:03 AM by fhh

    More About SEO

    Emilio Pérez Newbie

      Hi,

      I'm trying to develop a multilingual Blog (Mainly to Learn more About JSF and Seam... and about English Language as well :P). I've created a new Project using seam-gen and I've found the following problems about SEO:

      1.- When you type http://localhost:8080/myapp it redirects to http://localhost:8080/myapp/home.seam .What would be the best way to configure the application to, when you type the root name of the application it just would execute home.seam (a kind of mapping / -> home.seam) without any redirect?

      2.- Everytime you click on "Home" link, it creates a new value for the cid parameter. What is that parameter for? What happens if you try to avoid it?

      3.- As I said before, I would like my Blog to be multilingual, so the Locale code would be in the URL of each page (eg http://localhost:8080/myapp/en/seam-seo ) so, the link to change the language should not be an action instead of a simple link. How could I do it?

      Thank You

        • 1. Re: More About SEO
          Pete Muir Master

           

          "emiperez" wrote:
          1.- When you type http://localhost:8080/myapp it redirects to http://localhost:8080/myapp/home.seam .What would be the best way to configure the application to, when you type the root name of the application it just would execute home.seam (a kind of mapping / -> home.seam) without any redirect?


          Not possible in Tomcat (and JBoss AS) afaik.

          2.- Everytime you click on "Home" link, it creates a new value for the cid parameter. What is that parameter for? What happens if you try to avoid it?


          It's the conversation id, you can read more about it in the reference manual.

          3.- As I said before, I would like my Blog to be multilingual, so the Locale code would be in the URL of each page (eg http://localhost:8080/myapp/en/seam-seo ) so, the link to change the language should not be an action instead of a simple link. How could I do it?


          I would use urlrewrite I think (e.g. see the wiki example).

          • 2. Re: More About SEO
            fhh Expert

            1.)

            Create a file index.seam with the following content:

            <%--
            Please DO NOT delete this file. This file is used
            to trick tomcat to detect index.seam as the
            welcome file and will load index.xhtml instead.
            --%>
            


            Add to web.xml:
             <welcome-file-list>
             <welcome-file>index.jsf</welcome-file>
             </welcome-file-list>
            


            Regards

            Felix