url rewriting need help.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bob Bedford

    url rewriting need help.


    Hello there,

    I've tried various tutorials on many websites but I absolutely don't
    understand how it works.

    My webserver has mor_rewrite enabled.

    I've a website where I manage electronics stuffs.

    So I've a search engine in my site wich get values from MySQL.
    when a query is done, I may have this:



    this gives me any sony television wich is 70cm diagonal and wich price is
    more than 1000 Euros.
    clicking on any item Ill have:


    Isn't very good for search engines, and it can't be found.
    My goal is to have something like:
    www.mysite.com/television/sony/70/>1000 to get the list and
    www.mysite.com/television/sony/70/>1000/3998.html for the item or something
    similar

    This is because I want the search engine to get some words when looking at
    my pages and then being referenced for the interesting words (like sony
    television)

    How to do so ? Also the people may be able to bookmark every article and I
    must be able to retrieve the article or redirect to the index page if the
    article isn't available anymore.

    any link that explain well with lot of examples...or a very good tutorial
    for newbie.

    Bob



  • Bob Bedford

    #2
    Re: url rewriting need help.


    I forgot:

    Ill also write a complete URL given an article.
    I've a direct selection article field (a input text where I can enter the
    article id).
    let's get this address:
    www.mysite.com?id=3563

    I'd like to have the URL created with the details coming from the MySQL
    database and as result:


    Bob


    "Bob Bedford" <bedford@nospam .com> a écrit dans le message de news:
    437517a1$0$1156 $5402220f@news. sunrise.ch...[color=blue]
    >
    >
    > Hello there,
    >
    > I've tried various tutorials on many websites but I absolutely don't
    > understand how it works.
    >
    > My webserver has mor_rewrite enabled.
    >
    > I've a website where I manage electronics stuffs.
    >
    > So I've a search engine in my site wich get values from MySQL.
    > when a query is done, I may have this:
    >
    > https://www.mysite.com/index.php?typ...riceto=&color=
    >
    > this gives me any sony television wich is 70cm diagonal and wich price is
    > more than 1000 Euros.
    > clicking on any item Ill have:
    > www.mysite.com/item.php?id=3998
    >
    > Isn't very good for search engines, and it can't be found.
    > My goal is to have something like:
    > www.mysite.com/television/sony/70/>1000 to get the list and
    > www.mysite.com/television/sony/70/>1000/3998.html for the item or
    > something similar
    >
    > This is because I want the search engine to get some words when looking at
    > my pages and then being referenced for the interesting words (like sony
    > television)
    >
    > How to do so ? Also the people may be able to bookmark every article and I
    > must be able to retrieve the article or redirect to the index page if the
    > article isn't available anymore.
    >
    > any link that explain well with lot of examples...or a very good tutorial
    > for newbie.
    >
    > Bob
    >
    >
    >[/color]



    Comment

    • Niheel
      Recognized Expert Moderator Top Contributor
      • Jul 2005
      • 2432

      #3
      Have you done a search on google for "search engine friendly mod_rewrite"? try to add tutorial to the end of it too.

      There are pleny of examples out there. You shouldn't have a hard time finding one.
      niheel @ bytes

      Comment

      • Chung Leong

        #4
        Re: url rewriting need help.


        Bob Bedford wrote:[color=blue]
        > Isn't very good for search engines, and it can't be found.
        > My goal is to have something like:
        > www.mysite.com/television/sony/70/>1000 to get the list and
        > www.mysite.com/television/sony/70/>1000/3998.html for the item or something
        > similar[/color]

        I have to question this notion that search engines can't handle pages
        with query strings. When I look at my server log, I regularly see them
        deep scanning my site, which has URLs like
        http://www.example.com/page.php?doc=author.

        What's more relevant, I suspect, is the page expiration. If a page is
        set to expire immediately, it'd make sense for a search engine to
        ignore it.

        Comment

        • Bob Bedford

          #5
          Re: url rewriting need help.


          "Chung Leong" <chernyshevsky@ hotmail.com> a écrit dans le message de news:
          1131778680.2399 63.108470@z14g2 00...legr oups.com...[color=blue]
          >
          > Bob Bedford wrote:[color=green]
          >> Isn't very good for search engines, and it can't be found.
          >> My goal is to have something like:
          >> www.mysite.com/television/sony/70/>1000 to get the list and
          >> www.mysite.com/television/sony/70/>1000/3998.html for the item or
          >> something
          >> similar[/color]
          >
          > I have to question this notion that search engines can't handle pages
          > with query strings. When I look at my server log, I regularly see them
          > deep scanning my site, which has URLs like
          > http://www.example.com/page.php?doc=author.
          >
          > What's more relevant, I suspect, is the page expiration. If a page is
          > set to expire immediately, it'd make sense for a search engine to
          > ignore it.[/color]
          Main spiders may understand dynamic URL's but most doesnt.


          Comment

          • Chung Leong

            #6
            Re: url rewriting need help.

            I don't buy that assertion. Can you give an example?

            Comment

            • Tim Roberts

              #7
              Re: url rewriting need help.

              "Bob Bedford" <bedford@nospam .com> wrote:[color=blue]
              >
              >I've tried various tutorials on many websites but I absolutely don't
              >understand how it works.
              >
              >My webserver has mor_rewrite enabled.
              >
              >I've a website where I manage electronics stuffs.
              >
              >So I've a search engine in my site wich get values from MySQL.
              >when a query is done, I may have this:
              >
              >https://www.mysite.com/index.php?typ...riceto=&color=
              >
              >this gives me any sony television wich is 70cm diagonal and wich price is
              >more than 1000 Euros.
              >clicking on any item Ill have:
              >www.mysite.com/item.php?id=3998
              >
              >Isn't very good for search engines, and it can't be found.[/color]

              Of course it can. Now, do you understand that no search engine will ever
              probe and catalog your link unless that EXACT LINK is stored somewhere on a
              public page? Spiders are stupid creatures. They cannot invent query
              strings, they only follow the links on existing pages, but they will
              certainly follow links with query strings attached.
              --
              - Tim Roberts, timr@probo.com
              Providenza & Boekelheide, Inc.

              Comment

              • Geoff Berrow

                #8
                Re: url rewriting need help.

                Message-ID: <ehtdn1lph2c5hn gfhhrtr86cp799f 2ncbf@4ax.com> from Tim
                Roberts contained the following:
                [color=blue]
                >They cannot invent query
                >strings, they only follow the links on existing pages, but they will
                >certainly follow links with query strings attached.[/color]

                Most pundits seem to say that search engines will not follow query
                strings (e.g. http://www.netmechanic.com/news/vol2/search_no11.htm )

                Do you have definitive information on this?

                --
                Geoff Berrow (put thecat out to email)
                It's only Usenet, no one dies.
                My opinions, not the committee's, mine.
                Simple RFDs http://www.ckdog.co.uk/rfdmaker/

                Comment

                • Bob Bedford

                  #9
                  Re: url rewriting need help.



                  "Chung Leong" <chernyshevsky@ hotmail.com> a écrit dans le message de news:
                  1131854194.5025 80.249920@g47g2 00...legr oups.com...[color=blue]
                  >I don't buy that assertion. Can you give an example?[/color]
                  I don't sell it :)....but a few little search engine don't manage the
                  dynamic url as the say that being dynamically generated, the aren't stored
                  in their index.
                  You probably know that google put more importance when the search keywords
                  are in the URL.

                  So www.mysite.com&cat=23&id=34

                  has less importance for google and others than



                  when you look at sony television....



                  Comment

                  • Bob Bedford

                    #10
                    Re: url rewriting need help.



                    "Geoff Berrow" <blthecat@ckdog .co.uk> a écrit dans le message de news:
                    ki0en1p24522276 b2drnoe11iu2emk gujh@4ax.com...[color=blue]
                    > Message-ID: <ehtdn1lph2c5hn gfhhrtr86cp799f 2ncbf@4ax.com> from Tim
                    > Roberts contained the following:
                    >[color=green]
                    >>They cannot invent query
                    >>strings, they only follow the links on existing pages, but they will
                    >>certainly follow links with query strings attached.[/color]
                    >
                    > Most pundits seem to say that search engines will not follow query
                    > strings (e.g. http://www.netmechanic.com/news/vol2/search_no11.htm )
                    >
                    > Do you have definitive information on this?[/color]
                    as already stated previously:
                    www.mysite.com&cat=23&id=34

                    has far less importance for google and others than



                    when you look at sony television....

                    I've already a page with all links that spriders may follow, but they have
                    no informations on the URL of what kind of object the page is referenced. Of
                    course there is a title for it, but with the main text on the URL that I
                    want to taget for search engine users, then the page will win on pagerank.

                    Bob



                    Comment

                    • Chung Leong

                      #11
                      Re: url rewriting need help.

                      Geoff Berrow wrote:[color=blue]
                      >
                      > Most pundits seem to say that search engines will not follow query
                      > strings (e.g. http://www.netmechanic.com/news/vol2/search_no11.htm )[/color]

                      If as the author suggests, "most search engine spiders refuse to follow
                      links containing CGI query strings," then why is it so hard to name
                      even one that exhibits this behavior? The competitive pressure in the
                      search engine market is to index as many pages as possible. It doesn't
                      make any sense for a company to handicap their spider so arbitrarily.
                      Google has no problem with query strings. Neither does Teoma or
                      Inktomi. I've even seen one search engine indexing the result page of
                      another (through an affiliate).

                      A search engine, by definition, remembers what's on each page. Its
                      spider thus could easily avoid getting trapped in a loop without such
                      draconian measure as rejecting URLs with query strings.

                      Comment

                      • meltedown

                        #12
                        Re: url rewriting need help.

                        Bob Bedford wrote:[color=blue]
                        >
                        >
                        > "Geoff Berrow" <blthecat@ckdog .co.uk> a écrit dans le message de news:
                        > ki0en1p24522276 b2drnoe11iu2emk gujh@4ax.com...
                        >[color=green]
                        >>Message-ID: <ehtdn1lph2c5hn gfhhrtr86cp799f 2ncbf@4ax.com> from Tim
                        >>Roberts contained the following:
                        >>
                        >>[color=darkred]
                        >>>They cannot invent query
                        >>>strings, they only follow the links on existing pages, but they will
                        >>>certainly follow links with query strings attached.[/color]
                        >>
                        >>Most pundits seem to say that search engines will not follow query
                        >>strings (e.g. http://www.netmechanic.com/news/vol2/search_no11.htm )
                        >>
                        >>Do you have definitive information on this?[/color]
                        >
                        > as already stated previously:
                        > www.mysite.com&cat=23&id=34
                        >
                        > has far less importance for google and others than
                        >
                        > www.mysite.com/television/sony
                        >
                        > when you look at sony television....
                        >
                        > I've already a page with all links that spriders may follow, but they have
                        > no informations on the URL of what kind of object the page is referenced. Of
                        > course there is a title for it, but with the main text on the URL that I
                        > want to taget for search engine users, then the page will win on pagerank.
                        >
                        > Bob[/color]

                        Are saying the second url is better because it has the words
                        "television " and "sony" in it ?

                        So wouldn't www.mysite.com/index.php?&cat=telvision&id=sony
                        be just as good ?

                        [color=blue]
                        >
                        >
                        >
                        >[/color]

                        Comment

                        • Tim Roberts

                          #13
                          Re: url rewriting need help.

                          Geoff Berrow <blthecat@ckdog .co.uk> wrote:
                          [color=blue]
                          >Message-ID: <ehtdn1lph2c5hn gfhhrtr86cp799f 2ncbf@4ax.com> from Tim
                          >Roberts contained the following:
                          >[color=green]
                          >>They cannot invent query
                          >>strings, they only follow the links on existing pages, but they will
                          >>certainly follow links with query strings attached.[/color]
                          >
                          >Most pundits seem to say that search engines will not follow query
                          >strings (e.g. http://www.netmechanic.com/news/vol2/search_no11.htm )[/color]

                          Do you mean, "One pundit seems to say"? ;)
                          [color=blue]
                          >Do you have definitive information on this?[/color]

                          Only empirical evidence. I tried a half dozen random Google searches, and
                          every one included a query string in the top ten hits.

                          The Wikipedia entry on Google says that it has trouble indexing URLs with
                          query strings with more than six parameters.
                          --
                          - Tim Roberts, timr@probo.com
                          Providenza & Boekelheide, Inc.

                          Comment

                          • Maarten

                            #14
                            Re: url rewriting need help.

                            Hi there Bob,

                            Interesting discussion you have going here. I can see why a search
                            engine might rank path names with relevant keywords higher than a URL
                            with keywords as parameters. But besides that, it also makes it a lot
                            easier for your visitors to find stuff on your site. www.php.net for
                            example uses this. You can search their site by adding keywords at the
                            end of the URL, i.e. www.php.net/mod_rewrite. Same goes for
                            wikipedia.org/wiki and dictionary.com. I like it a lot. Very cool and
                            very intuitive.

                            As for how they do it. Have a look at
                            http://httpd.apache.org/docs/2.0/mis...iteguide.html? It contains
                            many examples created by Ralf Engelschall, the man that invented
                            mod_rewrite according to mod-rewrite.com. I can also suggest the forum
                            at http://modrewrite.com/ where they have a beginner's corner :). I am
                            kind of new to this myself, but found these source very helpful.

                            Comment

                            Working...