Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

SEO friendly url's & subfolders

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    SEO friendly url's & subfolders

    I want to have SEO friendly url's for a multilanguage website & it is my understanding that I best create each page for each language.

    Say I have 2 languages "nl" & "fr"

    I would like url's like www.company.be/nl/product1.a5w which is much nicer than www.company.be/nl-product1.a5w

    If I read the wikipage http://wiki.alphasoftware.com/How+to...+subfolders-nl then it seems that this is not possible.

    In fact if I do try it and create a grid component in the project root folder & put it on an A5W page in the "nl" subfolder I get a security error,
    if I create the component in the "nl" subfolder then I cannot insert it onto an A5W page that I created in the "nl" subfolder.

    Has anyone been doing what I intend to do?
    Frank

    Tell me and I'll forget; show me and I may remember; involve me and I'll understand

    #2
    Re: SEO friendly url's & subfolders

    To my understanding all grids must be placed in the apps webroot to acivate security.


    c:\a5webroot is oke
    c:\A5webroot\xxxx is oke
    c:\a5webroot\xxxx\nl\ not oke
    c:\a5webroot\myapps\nl\xxxx is not

    Argument for the wishlist?

    Comment


      #3
      Re: SEO friendly url's & subfolders

      To complete my question: I want and index.a5w page in c:\a5webroot , this page only offers a language choice "nl" or "fr"
      depending on the user's choice this index page would link to pages in c:\a5webroot\nl or c:\a5webroot\fr
      Frank

      Tell me and I'll forget; show me and I may remember; involve me and I'll understand

      Comment


        #4
        Re: SEO friendly url's & subfolders

        Originally posted by Clipper87 View Post
        To complete my question: I want and index.a5w page in c:\a5webroot , this page only offers a language choice "nl" or "fr"
        depending on the user's choice this index page would link to pages in c:\a5webroot\nl or c:\a5webroot\fr

        This is not so long ago subject on the Board for discussion. Exactly what you are looking for is a page with a choice list for the language. Then using the case statement a, b​​, c a redirect to the page you need.
        search argument is <translation>

        Comment


          #5
          Re: SEO friendly url's &amp; subfolders

          Eric

          Point is I want the same pagename for every language version of that page
          Frank

          Tell me and I'll forget; show me and I may remember; involve me and I'll understand

          Comment


            #6
            Re: SEO friendly url's &amp; subfolders

            Imagine that Alphas web components would act like a special (session)variables and Alpha would allow to use templates for html pages and you could put to this kind of html-template your component as placeholders like this: <%a5 MyComponentName %> and when this page renders the component will show on page.

            If this would be possible the same page name for every language would be a peace of cake.

            But I am just dreaming.

            Comment


              #7
              Re: SEO friendly url's &amp; subfolders

              I'd say it is completely possible. Alpha's code for the component (on the A5W page) is exactly the same except for the component name within the code, about 17 time unfortunaltey. That area is just xbasic, so you could replace the component name with a variable, accounting for how Alpha trims long component names.

              Or you could insert ALL of your components on the same page and toggle in the correct one with:

              <%a5
              select
              case session.lang="fr"
              %>
              ..fr component html
              <%a5 case session.lang = "en" %>
              ..en component html
              <%a5 case else
              ..fr component html
              <%a5 end select %>

              Or other variations using a5_include().

              I'd probably write a function so I could use this syntax:

              <%a5 mylangcomponent(session.lang,"abc") %>

              where "abc" was the base component name, and session.lang told the function what prefix to apply:

              fr_basecomponentname
              en_basecomponentname
              etc.
              Steve Wood
              See my profile on IADN

              Comment


                #8
                Re: SEO friendly url's &amp; subfolders

                For each component a different language if you suggest means component 200 * 4 languages ​​is a lot of work.
                Correction to a grid component x * language is impossible, I have an idea about good solution but I first want to test properly, and keep on dreaming indicating what Ken's half what you can do to yourself a lot of results. Ken also has his answer on the other hand certain logic that there is a need in the area of multiple language support including using templates. But because they are not there or do not meet my expectations but I fill that dream itself

                Comment


                  #9
                  Re: SEO friendly url's &amp; subfolders

                  Steve,

                  Wouldn't you end up with pages that are not indexable then?
                  Frank

                  Tell me and I'll forget; show me and I may remember; involve me and I'll understand

                  Comment


                    #10
                    Re: SEO friendly url's &amp; subfolders

                    I'm making progress; I create a junction in a5webroot for my different languages.

                    mklink /j nl c:\a5webroot
                    mklink /j fr c:\a5webroot

                    This allows to have a page in c:\a5webroot\index.a5w that acts as a language selector with links in it for nl\product.a5w & fr\product.a5w both pointing to c:\a5webroot\product.a5w

                    now I have to tackle the seo stuff; google crawlers do not work with session variables so the product.a5w page needs to now somehow what language to use without session variables

                    Anybody?
                    Frank

                    Tell me and I'll forget; show me and I may remember; involve me and I'll understand

                    Comment


                      #11
                      Re: SEO friendly url's &amp; subfolders

                      OK this is my solution that seems to work:

                      mklink /j nl c:\a5webroot
                      mklink /j fr c:\a5webroot

                      This allows to have a page in c:\a5webroot\index.a5w that acts as a language selector with links in it for nl\product.a5w & fr\product.a5w both pointing to c:\a5webroot\product.a5w

                      in product.a5w I check if left(request.scriptname,3) = "fr" then I include product_fr.a5w else I include product_nl.a5w

                      if someone browses to company.com\product.a5w then it would produce the dutch version as default language (same as browsing to company.com\nl\product.a5w)

                      Now I wonder if someone sees any other problems as to why this would not work: security ? Ajax stuff? it all happens in the webroot folder so...?
                      Frank

                      Tell me and I'll forget; show me and I may remember; involve me and I'll understand

                      Comment


                        #12
                        Re: SEO friendly url's &amp; subfolders

                        I think you will find it impossible to maintain that system. Try placing A5W pages in folders in your development build of Alpha, try adding components to those pages (the ones in subfolders).
                        Steve Wood
                        See my profile on IADN

                        Comment


                          #13
                          Re: SEO friendly url's &amp; subfolders

                          Originally posted by Steve Wood View Post
                          I think you will find it impossible to maintain that system. Try placing A5W pages in folders in your development build of Alpha, try adding components to those pages (the ones in subfolders).
                          That does not work :

                          In fact if I do try it and create a grid component in the project root folder & put it on an A5W page in the "nl" subfolder I get a security error,
                          if I create the component in the "nl" subfolder then I cannot insert it onto an A5W page that I created in the "nl" subfolder.
                          Frank

                          Tell me and I'll forget; show me and I may remember; involve me and I'll understand

                          Comment


                            #14
                            Re: SEO friendly url's &amp; subfolders

                            Turns out that using junctions you can make any SEO friendly url you like while all your code remains in webroot.

                            mklink /j nl c:\a5webroot
                            mklink /j products c:\a5webroot

                            This will allow to browse for \\company.com\nl\products\product1.a5w & \\company.com\products\nl\product1.a5w

                            If you don't like the second url then you can redirect a request for it to a 404 page.
                            Frank

                            Tell me and I'll forget; show me and I may remember; involve me and I'll understand

                            Comment


                              #15
                              Re: SEO friendly url's &amp; subfolders

                              Hi,

                              I actually send an email to Richard about this since I have the same issue at hand. I want to have nl and fr folders. I never got a reply though. However, it's clear that Alphafive can't handle directories where you place components and a5w page in. The css link is read from the webroot directory.

                              What you could do is as Steve Wood said, create one page with the components in different languages and dependent on a session variable show the component you want. Then when you deal with text, load the html from
                              the database instead of having it statically in the a5w page.

                              Comment

                              Working...
                              X