SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Jul 2005
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation please find error in this file

    DirectoryIndex index.php
    RewriteEngine On

    RewriteRule ^auctiondetails\.php/id/[0-9]/?$ http://192.168.0.17/ProBid/auctiondetails.php?id=$1 [QSA]
    RewriteRule ^(categories\.php/parent/[0-9]/)*categories\.php/parent/[0-9]/?$ http://192.168.0.17/ProBid/categories.php?parent=$1 [QSA]
    RewriteRule ^(categories\.php/parent/[0-9]/show/subcats/)*categories\.php/parent/[0-9]/show/subcats/?$ http://192.168.0.17/ProBid/categories.php?parent=$1&show=subcats [QSA,L]

    I have some problem in redirecting my links to desired page.
    Please check above htaccess file & give me any suggestion to correect it.
    Example:
    http://192.168.0.17/auction/categories.php/parent/4
    should redirected to
    http://192.168.0.17/auction/categories.php?parent=4

  2. #2
    SitePoint Guru enygmadae's Avatar
    Join Date
    Sep 2002
    Location
    Dallas, Tx.
    Posts
    795
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    well, what's it doing right now? nothing?
    PHP News, Views and Community: http://www.phpdeveloper.org

  3. #3
    SitePoint Enthusiast
    Join Date
    Aug 2004
    Location
    Bloomington, IL
    Posts
    93
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try:
    Code:
    DirectoryIndex index.php
    RewriteEngine On
    
    RewriteRule auctiondetails\.php/id/([0-9]+)/?$ http://192.168.0.17/ProBid/auctiondetails.php?id=$1 [NC,L]
    RewriteRule categories\.php/parent/([0-9]+)/?$ http://192.168.0.17/ProBid/categories.php?parent=$1 [NC,L]
    RewriteRule categories\.php/parent/([0-9]+)/show/subcats/?$ http://192.168.0.17/ProBid/categories.php?parent=$1&show=subcats [NC,L]


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •