Loading ...
Sorry, an error occurred while loading the content.

Re: Generating reports for dynamic pages

Expand Messages
  • denilson@vertentes.com.br
    Thank you, Waitman. Can you explain to me how do I use mod_rewrite? I really don t know, and I don t found it in the documentation. [] s Denilson ... sense.
    Message 1 of 8 , Nov 20, 2001
    • 0 Attachment
      Thank you, Waitman.

      Can you explain to me how do I use mod_rewrite? I really don't know,
      and I don't found it in the documentation.

      []'s
      Denilson




      --- In webalizer@y..., "Waitman Gobble" <waitman@e...> wrote:
      > Regarding dynamic pages, check out mod_rewrite
      >
      > If you use mod_rewrite your site and your logs should make more
      sense.
      > example site http://bestbeachwear.com
      >
      > this url makes my client happy:
      > http://bestbeachwear.com/one-piece_1005
      >
      > and this one does not
      > http://bestbeachwear.com/index.php?page=1001_1005
      >
      > plus i have heard a rumor that search engines don't like parameters
      in URLs,
      > a lot of them ignore them. so they only see index.php I cannot
      confirm this
      > 100%
      >
      > Waitman Gobble
      > EMK Design
      > Buena Park CA 90621
      > 714-522-2528
      >
      > ----- Original Message -----
      > From: <denilson@v...>
      > To: <webalizer@y...>
      > Sent: Monday, November 19, 2001 9:49 AM
      > Subject: [webalizer] Generating reports for dynamic pages
      >
      >
      > > Hi
      > >
      > > I have created my account in this group today, and here is my
      > > question (I don't speak english very well :( please sorry for
      > > mystakes):
      > >
      > > I have a log from my site generated by the Apache Server. The
      problem
      > > is: my page use URLs like /index.php3?var=cto
      > > or /Especial.php3#133206.
      > >
      > > I have defined PageType php* but the exemples above are not
      > > processed. All the content of my site is accessed by 14 main
      files,
      > > by topics. If I ignore entries like the listed above, I will
      ignore
      > > my entire site!
      > >
      > > I tried:
      > >
      > > PageType php3?var*
      > > or
      > > PageType *=*
      > >
      > > In the second line, I tried to give to Webalizer the
      information "If
      > > have something=something, is a page" - for the cases
      var=something.
      > > But in this cases the Webalizer consider the number of hits as the
      > > same number of pageviews.
      > >
      > > Can someone help me?
      > >
      > > Thanks
      > >
      > >
      > >
      > > To unsubscribe from this group, send an email to:
      > > webalizer-unsubscribe@egroups.com
      > > Webalizer homepage: http://www.webalizer.org
      > > Webalizer for NT: http://www.medasys-lille.com/webalizer/
      > >
      > >
      > >
      > >
      > > Your use of Yahoo! Groups is subject to
      http://docs.yahoo.com/info/terms/
      > >
      > >
    • Waitman Gobble
      Denilson Here are two links for you to check out http://httpd.apache.org/docs/mod/mod_rewrite.html http://httpd.apache.org/docs-2.0/misc/rewriteguide.html Make
      Message 2 of 8 , Nov 20, 2001
      • 0 Attachment
        Denilson

        Here are two links for you to check out

        http://httpd.apache.org/docs/mod/mod_rewrite.html
        http://httpd.apache.org/docs-2.0/misc/rewriteguide.html

        Make sure you compile apache to include support for mod_rewrite,
        it should be in my notes somewhere on my personal site http://wcg2.com

        (if not let me know and i will get it in there)

        Here is my conf file for the bestbeachwear.com site -
        You basically need three things in there

        RewriteEngine on
        RewriteCond %{REQUEST_URI} ^/{regex}$
        RewriteRule ^/{regex}$ /{resulting URI}

        the {regex} is a regular expression to match
        the {resulting URI} is what you want to transform the request into.

        I found alot of people talking about it on http://dejanews.com but actually
        finding examples was difficult for me.

        Hopefully my example below will help.

        Waitman Gobble
        EMK Design
        714-522-2528

        <VirtualHost *>
        ServerAdmin hostmaster@...
        DocumentRoot /www/web/u/udeme/bestbeachwear/html
        ServerName bestbeachwear.com
        ServerAlias www.bestbeachwear.com \
        bestdesignerdresses.com www.bestdesignerdresses.com \
        caribbeanbikinis.com www.caribbeanbikinis.com \
        caribbeantropicbikini.com www.caribbeantropicbikini.com \
        femaleactivewear.com www.femaleactivewear.com \
        femalebeachwear.com www.femalebeachwear.com \
        femalecasualwear.com www.femalecasualwear.com \
        femalefitnesswear.com www.femalefitnesswear.com \
        femaleintimatewear.com www.femaleintimatewear.com \
        femaleswimwear.com www.femaleswimwear.com \
        girlscasualwear.com www.girlscasualwear.com \
        girlsfitnesswear.com www.girlsfitnesswear.com \
        ladiesbeachwear.com www.ladiesbeachwear.com \
        ladiesfitnesswear.com www.ladiesfitnesswear.com \
        tropicsbikini.com www.tropicsbikini.com \
        tropicsbikinis.com www.tropicsbikinis.com \
        tropisun.com www.tropisun.com \
        tropizon.com www.tropizon.com \
        webbikinimall.com www.webbikinimall.com \
        webbikinistore.com www.webbikinistore.com \
        womenbeachwear.com www.womenbeachwear.com \
        womenfitnesswear.com www.womenfitnesswear.com \
        womenswimwear.com www.womenswimwear.com \
        tropizone.com www.tropizone.com \
        tropicsgirls.com www.tropicsgirls.com \
        tropizonegirls.com www.tropizonegirls.com \
        tropizongirls.com www.tropizongirls.com \
        tropisungirls.com www.tropisungirls.com \
        beaufacegirls.com www.beaufacegirls.com \
        caribbeantropicgirls.com www.caribbeantropicgirls.com
        ErrorLog /www/logs/bestbeachwear-error_log
        CustomLog /www/logs/bestbeachwear-access_log combined
        RewriteEngine on

        RewriteCond %{REQUEST_URI} ^/pagepro_(.+)$
        RewriteRule ^/pagepro_(.+)$ /index.php?page=$1

        RewriteCond %{REQUEST_URI} ^/_(.+)$
        RewriteRule ^/_(.+)$ /index.php?page=$1

        RewriteCond %{REQUEST_URI} ^/banners/(.*)$
        RewriteRule ^/banners/(.*)$ /banners/$1

        RewriteCond %{REQUEST_URI} ^/ad_(.+)@(.+)$
        RewriteRule ^/ad_(.+)@(.+)$ /ad2.php?account=$1&affiliate=$2

        RewriteCond %{REQUEST_URI} ^/ad2_(.+)@(.+)$
        RewriteRule ^/ad2_(.+)@(.+)$ /ad2.php?account=$1&affiliate=$2

        RewriteCond %{REQUEST_URI} ^/ad3_(.+)@(.+)$
        RewriteRule ^/ad3_(.+)@(.+)$ /ad2.php?account=$1&affiliate=$2

        RewriteCond %{REQUEST_URI} ^/ad4_(.+)@(.+)$
        RewriteRule ^/ad4_(.+)@(.+)$ /ad2.php?account=$1&affiliate=$2

        RewriteCond %{REQUEST_URI} ^/ad5_(.+)@(.+)$
        RewriteRule ^/ad5_(.+)@(.+)$ /ad2.php?account=$1&affiliate=$2

        RewriteCond %{REQUEST_URI} ^/ad01_(.+)@(.+)$
        RewriteRule ^/ad01_(.+)@(.+)$ /ad3.php?account=$1&affiliate=$2

        RewriteCond %{REQUEST_URI} ^/ad02_(.+)@(.+)$
        RewriteRule ^/ad02_(.+)@(.+)$ /ad3.php?account=$1&affiliate=$2

        RewriteCond %{REQUEST_URI} ^/ad001_(.+)@(.+)$
        RewriteRule ^/ad001_(.+)@(.+)$ /ad4.php?account=$1&affiliate=$2

        RewriteCond %{REQUEST_URI} ^/ad002_(.+)@(.+)$
        RewriteRule ^/ad002_(.+)@(.+)$ /ad4.php?account=$1&affiliate=$2

        RewriteCond %{REQUEST_URI} ^/ad003_(.+)@(.+)$
        RewriteRule ^/ad003_(.+)@(.+)$ /ad4.php?account=$1&affiliate=$2

        RewriteCond %{REQUEST_URI} ^/ad004_(.+)@(.+)$
        RewriteRule ^/ad004_(.+)@(.+)$ /ad4.php?account=$1&affiliate=$2

        RewriteCond %{REQUEST_URI} ^/ad005_(.+)@(.+)$
        RewriteRule ^/ad005_(.+)@(.+)$ /ad4.php?account=$1&affiliate=$2

        RewriteCond %{REQUEST_URI} ^/adz002_(.+)@(.+)$
        RewriteRule ^/adz002_(.+)@(.+)$ /ad9.php?account=$1&affiliate=$2

        RewriteCond %{REQUEST_URI} ^/adz003_(.+)@(.+)$
        RewriteRule ^/adz003_(.+)@(.+)$ /ad9.php?account=$1&affiliate=$2

        RewriteCond %{REQUEST_URI} ^/adz004_(.+)@(.+)$
        RewriteRule ^/adz004_(.+)@(.+)$ /ad9.php?account=$1&affiliate=$2

        RewriteCond %{REQUEST_URI} ^/adz005_(.+)@(.+)$
        RewriteRule ^/adz005_(.+)@(.+)$ /ad9.php?account=$1&affiliate=$2

        RewriteCond %{REQUEST_URI} ^/adz006_(.+)@(.+)$
        RewriteRule ^/adz006_(.+)@(.+)$ /ad9.php?account=$1&affiliate=$2

        RewriteCond %{REQUEST_URI} ^/clickzoo_(.+)@(.+)@(.+)@(.+)$
        RewriteRule ^/clickzoo_(.+)@(.+)@(.+)@(.+)$
        /click7.php?account=$1&link=$2&affiliate=$3&url=$4

        RewriteCond %{REQUEST_URI} ^/click_(.+)@(.+)@(.+)@(.+)$
        RewriteRule ^/click_(.+)@(.+)@(.+)@(.+)$
        /click2.php?account=$1&link=$2&affiliate=$3&url=$4

        RewriteCond %{REQUEST_URI} ^/bikinis$
        RewriteRule ^/bikinis$ /index.php?page=1000
        RewriteCond %{REQUEST_URI} ^/bikinis_(.+)$
        RewriteRule ^/bikinis_(.+)$ /index.php?page=1000_$1

        RewriteCond %{REQUEST_URI} ^/one-piece$
        RewriteRule ^/one-piece$ /index.php?page=1001
        RewriteCond %{REQUEST_URI} ^/one-piece_(.+)$
        RewriteRule ^/one-piece_(.+)$ /index.php?page=1001_$1

        RewriteCond %{REQUEST_URI} ^/cover-ups$
        RewriteRule ^/cover-ups$ /index.php?page=1003
        RewriteCond %{REQUEST_URI} ^/cover-ups_(.+)$
        RewriteRule ^/cover-ups_(.+)$ /index.php?page=1003_$1

        RewriteCond %{REQUEST_URI} ^/casuals$
        RewriteRule ^/casuals$ /index.php?page=1004
        RewriteCond %{REQUEST_URI} ^/casuals_(.+)$
        RewriteRule ^/casuals_(.+)$ /index.php?page=1004_$1

        RewriteCond %{REQUEST_URI} ^/dresses$
        RewriteRule ^/dresses$ /index.php?page=1002
        RewriteCond %{REQUEST_URI} ^/dresses_(.+)$
        RewriteRule ^/dresses_(.+)$ /index.php?page=1002_$1

        RewriteCond %{REQUEST_URI} ^/active-wears$
        RewriteRule ^/active-wears$ /index.php?page=1006
        RewriteCond %{REQUEST_URI} ^/active-wears_(.+)$
        RewriteRule ^/active-wears_(.+)$ /index.php?page=1006_$1

        RewriteCond %{REQUEST_URI} ^/intimates$
        RewriteRule ^/intimates$ /index.php?page=1005
        RewriteCond %{REQUEST_URI} ^/intimates_(.+)$
        RewriteRule ^/intimates_(.+)$ /index.php?page=1005_$1

        RewriteCond %{REQUEST_URI} ^/accessories$
        RewriteRule ^/accessories$ /index.php?page=1007
        RewriteCond %{REQUEST_URI} ^/accessories_(.+)$
        RewriteRule ^/accessories_(.+)$ /index.php?page=1007_$1

        RewriteCond %{REQUEST_URI} ^/merchandise$
        RewriteRule ^/merchandise$ /index.php?page=1008
        RewriteCond %{REQUEST_URI} ^/merchandise_(.+)$
        RewriteRule ^/merchandise_(.+)$ /index.php?page=1008_$1

        RewriteCond %{REQUEST_URI} ^/new-items$
        RewriteRule ^/new-items$ /index.php?page=new

        RewriteCond %{REQUEST_URI} ^/on-sale$
        RewriteRule ^/on-sale$ /index.php?page=sale
        RewriteCond %{REQUEST_URI} ^/on-sale_(.+)$
        RewriteRule ^/on-sale_(.+)$ /index.php?page=sale_$1

        RewriteCond %{REQUEST_URI} ^/mix-n-match$
        RewriteRule ^/mix-n-match$ /index.php?page=mixnmatch

        RewriteCond %{REQUEST_URI} ^/tops$
        RewriteRule ^/tops$ /index.php?page=1010
        RewriteCond %{REQUEST_URI} ^/tops_(.+)$
        RewriteRule ^/tops_(.+)$ /index.php?page=1010_$1

        RewriteCond %{REQUEST_URI} ^/bottoms$
        RewriteRule ^/bottoms$ /index.php?page=1009
        RewriteCond %{REQUEST_URI} ^/bottoms_(.+)$
        RewriteRule ^/bottoms_(.+)$ /index.php?page=1009_$1

        <Directory "/www/web/u/udeme/bestbeachwear/html">
        Options FollowSymLinks
        AllowOverride None
        Order allow,deny
        Allow from all
        DirectoryIndex index.php
        ErrorDocument 404 /404.php
        </Directory>
        </VirtualHost>

        ----- Original Message -----
        From: <denilson@...>
        To: <webalizer@yahoogroups.com>
        Sent: Tuesday, November 20, 2001 8:32 AM
        Subject: [webalizer] Re: Generating reports for dynamic pages


        > Thank you, Waitman.
        >
        > Can you explain to me how do I use mod_rewrite? I really don't know,
        > and I don't found it in the documentation.
        >
        > []'s
        > Denilson
        >
        >
        >
        >
        > --- In webalizer@y..., "Waitman Gobble" <waitman@e...> wrote:
        > > Regarding dynamic pages, check out mod_rewrite
        > >
        > > If you use mod_rewrite your site and your logs should make more
        > sense.
        > > example site http://bestbeachwear.com
        > >
        > > this url makes my client happy:
        > > http://bestbeachwear.com/one-piece_1005
        > >
        > > and this one does not
        > > http://bestbeachwear.com/index.php?page=1001_1005
        > >
        > > plus i have heard a rumor that search engines don't like parameters
        > in URLs,
        > > a lot of them ignore them. so they only see index.php I cannot
        > confirm this
        > > 100%
        > >
        > > Waitman Gobble
        > > EMK Design
        > > Buena Park CA 90621
        > > 714-522-2528
        > >
        > > ----- Original Message -----
        > > From: <denilson@v...>
        > > To: <webalizer@y...>
        > > Sent: Monday, November 19, 2001 9:49 AM
        > > Subject: [webalizer] Generating reports for dynamic pages
        > >
        > >
        > > > Hi
        > > >
        > > > I have created my account in this group today, and here is my
        > > > question (I don't speak english very well :( please sorry for
        > > > mystakes):
        > > >
        > > > I have a log from my site generated by the Apache Server. The
        > problem
        > > > is: my page use URLs like /index.php3?var=cto
        > > > or /Especial.php3#133206.
        > > >
        > > > I have defined PageType php* but the exemples above are not
        > > > processed. All the content of my site is accessed by 14 main
        > files,
        > > > by topics. If I ignore entries like the listed above, I will
        > ignore
        > > > my entire site!
        > > >
        > > > I tried:
        > > >
        > > > PageType php3?var*
        > > > or
        > > > PageType *=*
        > > >
        > > > In the second line, I tried to give to Webalizer the
        > information "If
        > > > have something=something, is a page" - for the cases
        > var=something.
        > > > But in this cases the Webalizer consider the number of hits as the
        > > > same number of pageviews.
        > > >
        > > > Can someone help me?
        > > >
        > > > Thanks
        > > >
        > > >
        > > >
        > > > To unsubscribe from this group, send an email to:
        > > > webalizer-unsubscribe@egroups.com
        > > > Webalizer homepage: http://www.webalizer.org
        > > > Webalizer for NT: http://www.medasys-lille.com/webalizer/
        > > >
        > > >
        > > >
        > > >
        > > > Your use of Yahoo! Groups is subject to
        > http://docs.yahoo.com/info/terms/
        > > >
        > > >
        >
        >
        >
        > To unsubscribe from this group, send an email to:
        > webalizer-unsubscribe@egroups.com
        > Webalizer homepage: http://www.webalizer.org
        > Webalizer for NT: http://www.medasys-lille.com/webalizer/
        >
        >
        >
        >
        > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
        >
        >
      • denilson@vertentes.com.br
        I will try to implement this in my server. Thank you, again. ... ...
        Message 3 of 8 , Nov 20, 2001
        • 0 Attachment
          I will try to implement this in my server. Thank you, again.


          --- In webalizer@y..., "Waitman Gobble" <waitman@e...> wrote:
          > Denilson
          >
          > Here are two links for you to check out
          >
          > http://httpd.apache.org/docs/mod/mod_rewrite.html
          > http://httpd.apache.org/docs-2.0/misc/rewriteguide.html
          ...
        • denilson@vertentes.com.br
          Just a confirmation: the default ISURLCHAR is ... I will add the values # = ? & just like this ... and recompile. Is this ok? ... strips ... If ... the & ,
          Message 4 of 8 , Nov 21, 2001
          • 0 Attachment
            Just a confirmation: the default ISURLCHAR is


            >int isurlchar(char ch)
            >{
            > if (isalnum((int)ch)) return 1; /* allow letters,
            >numbers... */
            > return (strchr(":/\\.,' *-+_@~()[]",ch)!=NULL); /* and a few
            >special ones */
            >}

            I will add the values # = ? & just like this

            >return (strchr(":/\\.,' *-+_@~()[]#=?&",ch)!=NULL); /* and a few
            >special ones */

            and recompile. Is this ok?



            > PageType php
            >
            > Is correct, to determine the page counts. However, the program
            strips
            > off CGI variables in order to produce more accurate URL analysis..
            If
            > you want them preserved, you need to edit webalizer.c and add
            the '&',
            > '?' and '=' characters to the "isurlchar()" fuction and re-compile..
            > (or use the mod_rewrite feature as described in the previous post,
            which
            > is much cleaner).
          Your message has been successfully submitted and would be delivered to recipients shortly.