15 Replies Latest reply on Aug 16, 2007 3:54 PM by Realtoast

    flip-flopping URL address

    Realtoast Level 1
      Hello Experts.

      I recently read about how to go about changing the URL address of a page so that it is somewhat reversed; where the domain name is after a sub directory name. The effect, for my purposes, would be to have the site address with a customers name first (the customer's name is the name of a sub-folder in the root folder), and then the domain name. The effect is a more personalized URL.

      EXAMPLE:
      Current URL - http://verycoolsite.com/dairyqueen (opens the index page from the sub-folder, dairyqueen)

      Desired URL - http://dairyqueen.verycoolsite.com (same site index page is opened, but more personalized effect)

      This is often seen in blog URL's (davedog.blogger.com).

      So, how is this done? Is it done from the ISP? Or is there code to add to the html that will do this?

      Any help appreciated.

      r
        • 1. Re: flip-flopping URL address
          joeq Level 1
          what you're looking for is called a subdomain. ask your host about it – you can probably do it yourself if they have a control panel.
          • 2. Re: flip-flopping URL address
            Level 7
            On Thu, 16 Aug 2007 14:18:02 +0000 (UTC), "Sbisa"
            <webforumsuser@macromedia.com> wrote:

            >Hello Experts.
            >
            > I recently read about how to go about changing the URL address of a page so
            >that it is somewhat reversed; where the domain name is after a sub directory
            >name. The effect, for my purposes, would be to have the site address with a
            >customers name first (the customer's name is the name of a sub-folder in the
            >root folder), and then the domain name. The effect is a more personalized URL.
            >

            >
            > r

            Google for sub domain

            --

            ~Malcolm N....
            ~
            • 3. Re: flip-flopping URL address
              Realtoast Level 1
              Thanks. You jogged my memory. I originally read about this at my hosting account.
              • 4. Re: flip-flopping URL address
                Level 7
                On 16 Aug 2007 in macromedia.dreamweaver, Sbisa wrote:

                > I recently read about how to go about changing the URL address of a
                > page so that it is somewhat reversed; where the domain name is after
                > a sub directory name. The effect, for my purposes, would be to have
                > the site address with a customers name first (the customer's name is
                > the name of a sub-folder in the root folder), and then the domain
                > name. The effect is a more personalized URL.
                >
                > EXAMPLE:
                > Current URL - http://verycoolsite.invalid/dairyqueen (opens the
                > index page from the sub-folder, dairyqueen)
                >
                > Desired URL - http://dairyqueen.verycoolsite.invalid (same site
                > index page is opened, but more personalized effect)
                >
                > This is often seen in blog URL's (davedog.blogger.invalid).
                >
                > So, how is this done? Is it done from the ISP? Or is there code to
                > add to the html that will do this?

                If you don't own a domain name, please don't use it in examples. Use
                either sitename.invalid (the whole "invalid" top level domain is
                reserved for non-existent domains), or use example.com|net|org, which
                are reserved domain names to use as examples.

                It's a combination of DNS (subdomain.example.com has to point
                somewhere) and server configuration (your server has to know that
                subdomain.example.com should get served the contents of
                /home/sbisa/public_html

                Blogs are different in that they are (for the most part) database
                driven, and sbisablog.example.com would be more likely to be the
                equivalent of example.com/blogindex.php?username=sbisa, and
                blogindex.php generates pages based on that username.

                --
                Joe Makowiec
                http://makowiec.net/
                Email: http://makowiec.net/contact.php
                • 5. Re: flip-flopping URL address
                  joeq Level 1
                  If you don't own a domain name, please don't use it in examples. Use either sitename.invalid (the whole "invalid" top level domain is
                  reserved for non-existent domains), or use example.com|net|org, which are reserved domain names to use as examples.

                  curious – why would you possibly care about that?
                  • 6. Re: flip-flopping URL address
                    Level 7
                    even more curious, it was .com in the original post. Where did .invalid come
                    from?


                    • 7. Re: flip-flopping URL address
                      Level 7


                      > even more curious, it was .com in the original post. Where did .invalid come
                      > from?

                      because Joe edited the quoted text before sending it.

                      The reason to care about it- It's similar to why US films and tv shows use
                      fake 555-xxxx phone numbers. It's just not right to publish a real phone
                      number when there is no need to do so. Same with giving example fake domain
                      names. http://example.com is reserved to be used As An Example. click it.
                      http://en.wikipedia.org/wiki/Example.com
                      You can also use a different 2cd level domain name, but put an invalid or
                      unassigned top level domain name after it, such as google.local or
                      msn.invalid or myfakedomainname.example

                      --
                      Alan
                      Adobe Community Expert, dreamweaver

                      http://www.adobe.com/communities/experts/



                      • 8. Re: flip-flopping URL address
                        Level 7
                        .oO(joeq)

                        >If you don't own a domain name, please don't use it in examples. Use either
                        >sitename.invalid (the whole "invalid" top level domain is
                        > reserved for non-existent domains), or use example.com|net|org, which are
                        >reserved domain names to use as examples.
                        >
                        > curious ? why would you possibly care about that?

                        Using an existing domain for examples will cause unnecessary traffic for
                        the site owner. If you post such a URL, it's very likely that

                        * someone will click on it, which will usually lead to a 404, it might
                        even confuse the user, because he expected a real working example
                        * spam harvesters can grab the domain name and send their crap to it

                        Micha
                        • 9. Re: flip-flopping URL address
                          Level 7
                          .oO(Justin Reid)

                          >even more curious, it was .com in the original post. Where did .invalid come
                          >from?

                          From Joe?

                          Micha
                          • 10. Re: flip-flopping URL address
                            Level 7
                            OK, ok... just never seen anyone use the .invalid before. Thought it was
                            some weird news reader thing.
                            I stand enlightend...


                            • 11. Re: flip-flopping URL address
                              joeq Level 1
                              i think the reason why films and tv shows use the 555 thing is because they don't want lawsuits arising from every bonehead who calls up and asks to speak to spiderman. in this case, the worst thing that happens is someone clicks on a website.... which, in this case, led to an error anyway.

                              just seemed kinda pedantic, that's all – but it's hardly a big deal.
                              • 12. Re: flip-flopping URL address
                                bregent Most Valuable Participant
                                >in this case, the worst thing that happens is someone clicks on a website.... which, in this case, led to an error anyway.

                                The end user is not the only issue. If you are the site webmaster trying to track down the cause of web log page errors then you may have a different opinion.
                                • 13. Re: flip-flopping URL address
                                  Level 7
                                  On Thu, 16 Aug 2007, joeq wrote

                                  > just seemed kinda pedantic, that's all ? but it's hardly a big deal.

                                  It could be for the company in Maryland that actually owns the domain
                                  used in the original post.
                                  You might also think so if people started using your own paid-for domain
                                  as a cool "made-up" domain.

                                  --
                                  Richard Mason
                                  http://www.emdpi.com
                                  • 14. Re: flip-flopping URL address
                                    Level 7
                                    If it gets people to visit my site, then more power to them. ;-)


                                    "Richard Mason" <whitneyrm@xtra.co.nz> wrote in message
                                    news:pSXLh5DgiMxGFwuO@example.com.invalid...
                                    > On Thu, 16 Aug 2007, joeq wrote
                                    >
                                    >> just seemed kinda pedantic, that's all ? but it's hardly a big deal.
                                    >
                                    > It could be for the company in Maryland that actually owns the domain used
                                    > in the original post.
                                    > You might also think so if people started using your own paid-for domain
                                    > as a cool "made-up" domain.
                                    >
                                    > --
                                    > Richard Mason
                                    > http://www.emdpi.com


                                    • 15. Re: flip-flopping URL address
                                      Realtoast Level 1
                                      Wow! I've discovered a sure-fire way to get a ton of posts to a question!

                                      Admitted rookie mistake on my part, which I now regret.

                                      AND, if my first mistake weren't bad enough, I also blasphemed Dairy Queen, fergawdzakes! I've shamed myself and family.

                                      Now don't everybody go clicking away to http://www.diaryqueen.invalid. Although Dairy Queen does necessarily want you to visit their site, they would presumably take great umbrage if you were to stumble upon it by, er, clicking; possibly suffering as many as a dozen unauthorized visits from this one careless mistake alone.

                                      I have duly learned my lesson.

                                      Thanks to everyone for their [curious] interest.