mod rewrite

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • halyfax
    Senior Member
    • Mar 2004
    • 124

    #1

    mod rewrite

    can anyone suggest why this mod rewrite is giving me 404 errors? Is there something special with dathorn servers?

    TIA

    Code:
    # SEARCH ENINGE FRIENDLY URLS FOR OR 2.0
    php_value session.use_trans_sid 0
    
    
    RewriteEngine On
    
    Rewriterule ^index.html index.php
    RewriteRule listing-([^-]*)-([0-9]*).html index.php?action=listingview&listingID=$2 [L]
    RewriteRule page-([^-]*)-([0-9]*).html index.php?action=page_display&PageID=$2 [L]
    RewriteRule search.html index.php?action=searchpage [L]
    RewriteRule rental_search.html index.php?action=rentalsearchpage [L]
    RewriteRule searchresults.html index.php?action=searchresults [L]
    RewriteRule rentalsearchresults.html index.php?action=searchresults&type=Rental [l]
    RewriteRule agents.html index.php?action=view_users [L]
    RewriteRule view_favorites.html index.php?action=view_favorites [L]
    RewriteRule calculator.html index.php?action=calculator [L]
    RewriteRule saved_searches.html index.php?action=view_saved_searches [L]
    RewriteRule listing_image_([0-9]*).html index.php?action=view_listing_image?_id=$1 [L]
    RewriteRule logout.html index.php?action=logout [L]
    RewriteRule member_signup.html index.php?action=signup&type=member [L]
    RewriteRule agent_signup.html index.php?action=signup&type=agent [L]
    RewriteRule member_login.html index.php?action=member_login [L]
  • Buddha
    Senior Member
    • Mar 2004
    • 825

    #2
    Code:
    php_value session.use_trans_sid 0
    That could cause a 500 Server Error here at Dathorn. Maybe that's related to your 404?
    "Whatcha mean I shouldn't be rude to my clients?! If you want polite then there will be a substantial fee increase." - Buddha

    Comment

    • halyfax
      Senior Member
      • Mar 2004
      • 124

      #3
      Originally posted by Buddha
      Code:
      php_value session.use_trans_sid 0
      That could cause a 500 Server Error here at Dathorn. Maybe that's related to your 404?
      would you just get rid of it? or should I change it?

      Comment

      • Buddha
        Senior Member
        • Mar 2004
        • 825

        #4
        Needs to go in a "php.ini" file because the default setting seems to be ON.
        Would look like this in the "php.ini" file:
        Code:
        session.use_trans_sid = 0
        "Whatcha mean I shouldn't be rude to my clients?! If you want polite then there will be a substantial fee increase." - Buddha

        Comment

        • sdjl
          Senior Member
          • Mar 2004
          • 502

          #5
          Do you get any errors showing up in your error log?
          This will tell you what's wrong with any of your mod_rewrite code or if there's a page missing, which is generally the case with a 404 error.

          David
          -----
          Do you fear the obsolescence of the metanarrative apparatus of legitimation?

          Comment

          Working...