htacess question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ramtar
    Registered User
    • Aug 2002
    • 117

    #1

    htacess question

    Ok need some help with htaccess, I have now:

    RewriteEngine on
    RewriteCond %{TIME_DAY} >1
    RewriteRule ^.*index\.html$ %{TIME_DAY}.html

    This use the html of the current day(01.htm...31.html) and convert it into:

    http://www.bitches-in-heat.net/index.html

    But, the problem is that it doesn't work for:

    http://www.bitches-in-heat.net/

    and all my traffic is pointing there

    Any idea how can I fix this?
  • lil2rich4u2
    ICQ: 175171926
    • Oct 2002
    • 11046

    #2
    Originally posted by ramtar
    Ok need some help with htaccess, I have now:

    RewriteEngine on
    RewriteCond %{TIME_DAY} >1
    RewriteRule ^.*index\.html$ %{TIME_DAY}.html

    This use the html of the current day(01.htm...31.html) and convert it into:

    http://www.bitches-in-heat.net/index.html

    But, the problem is that it doesn't work for:

    http://www.bitches-in-heat.net/

    and all my traffic is pointing there

    Any idea how can I fix this?
    im no good with htaccess so id prolly try to redirect all root traffic to the index.html file where it can be sorted by htaccess.

    i prolly misunderstood the question though, a bit tired ATM lol
    HEY!!

    Unbeatable hosting! Customer service is top notch!

    --> ISPrime <-- Do a search on any board, their reputation is rock solid .. for years!!

    Comment

    • ramtar
      Registered User
      • Aug 2002
      • 117

      #3
      cannot do that I will loose trades "ri" information

      Comment

      • swedguy
        Confirmed User
        • Jan 2002
        • 7981

        #4
        I would do it like this....

        RewriteEngine on
        RewriteCond %{TIME_DAY} >1
        RewriteCond %{REQUEST_URI} ^/index.html$ [OR]
        RewriteCond %{REQUEST_URI} ^/$
        RewriteRule .* %{TIME_DAY}.html

        Comment

        • ramtar
          Registered User
          • Aug 2002
          • 117

          #5
          worked thanks a lot dude

          Comment

          • swedguy
            Confirmed User
            • Jan 2002
            • 7981

            #6
            np

            Comment

            • mryellow
              Confirmed User
              • May 2001
              • 934

              #7
              Hey Swed,

              Never noticed that before...

              Cool if I add it to my htaccess info page?

              http://www.webpimps.com/scripts/htaccess/

              -Ben
              Cyberwurx Hosting
              After trying 5 different hosts, I found the best.
              Since 1997 I've had 2 hours of downtime.
              Fast support, great techs, no hype, no gimmicks.

              <- I in no way endorse whatever just got stuck on the left of my post.

              Comment

              • swedguy
                Confirmed User
                • Jan 2002
                • 7981

                #8
                Originally posted by mryellow
                Hey Swed,

                Never noticed that before...

                Cool if I add it to my htaccess info page?

                http://www.webpimps.com/scripts/htaccess/

                -Ben
                Sure, no problem

                Comment

                Working...