Quick htaccess fix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Davy
    Confirmed User
    • Apr 2006
    • 4323

    #1

    Quick htaccess fix

    Man, those htaccess files always drive me crazy!

    RewriteRule ^([0-9]+)\.php$ /forum/contest/index.php?year=$1 [L]
    When I go to 2007.php, the year that is passed to the index page is 0.
    I don't get it.
    ---
    ICQ 14-76-98 <-- I don't use this at all
  • teksonline
    So Fucking Banned
    • Jan 2005
    • 2904

    #2
    what is $1? nothing... What is 0... oh nothing

    Comment

    • teksonline
      So Fucking Banned
      • Jan 2005
      • 2904

      #3
      problemis not in your rewrite its in your code.. how are you seeing $year = 0? are you using register_globals? or are you doing $year = mysql_real_escape_string($_GET['year'])

      Comment

      • Davy
        Confirmed User
        • Apr 2006
        • 4323

        #4
        Aww. Shit.
        Just disregard this thread.

        I used "post" instead of "get" to get that variable. No wonder it was not working.
        Stupid.
        ---
        ICQ 14-76-98 <-- I don't use this at all

        Comment

        • xentech
          Confirmed User
          • Jan 2006
          • 1405

          #5
          haha pooned

          Comment

          Working...