help regarding php script

Discussion in 'PHP' started by saudshah, Jul 11, 2010.

  1. #1
    i just have installed a classifieds script , everything working good , but when i click on any link it sows the home page, its not showing ka category page. htaccess is here:

    RewriteEngine On                                                                                                                              
                                                                                                                                                  
    # Show ad                                                                                                                                     
    RewriteRule ^([-]?[0-9]+)([-_][^/]*)?/posts/([0-9]+)([-_][^/]*)?/([0-9]+)([-_][^/]*)?/([0-9]+)([-_][^/]*)?\.html		/classifieds/index.php?view=showad&adid=$7&cityid=$1 [QSA]
                                                                                                                                                  
    # Ads                                                                                                                                         
    RewriteRule ^([-]?[0-9]+)([-_][^/]*)?/posts/([0-9]+)([-_][^/]*)?/([0-9]+)([-_][^/]*)?/page([0-9]*)\.html			/classifieds/index.php?view=ads&catid=$3&subcatid=$5&cityid=$1&page=$7 [QSA]
    RewriteRule ^([-]?[0-9]+)([-_][^/]*)?/posts/([0-9]+)([-_][^/]*)?/([0-9]+)([-_][^/]*)?					/classifieds/index.php?view=ads&catid=$3&subcatid=$5&cityid=$1 [QSA]
                                                                                                                                                  
    # Ads by cat                                                                                                                                  
    RewriteRule ^([-]?[0-9]+)([-_][^/]*)?/posts/([0-9]+)([-_][^/]*)?								/classifieds/index.php?view=ads&catid=$3&cityid=$1 [QSA]
                                                                                                                                                  
    # Show event                                                                                                                                  
    RewriteRule ^([-]?[0-9]+)([-_][^/]*)?/events(/(([0-9]+)-([0-9]+)-([0-9]+)))?/([0-9]+)([-_][^/]*)?\.html			/classifieds/index.php?view=showevent&date=$4&adid=$8&cityid=$1 [QSA]
                                                                                                                                                  
    # Events on date                                                                                                                              
    RewriteRule ^([-]?[0-9]+)([-_][^/]*)?/events/(([0-9]+)-([0-9]+)-([0-9]+))/page([0-9]*)\.html				/classifieds/index.php?view=events&date=$3&cityid=$1&page=$7 [QSA]
    RewriteRule ^([-]?[0-9]+)([-_][^/]*)?/events/(([0-9]+)-([0-9]+)-([0-9]+))							/classifieds/index.php?view=events&date=$3&cityid=$1 [QSA]
    RewriteRule ^([-]?[0-9]+)([-_][^/]*)?/events										/classifieds/index.php?view=events&cityid=$1 [QSA]
                                                                                                                                                  
    # Show image                                                                                                                                  
    RewriteRule ^([-]?[0-9]+)([-_][^/]*)?/images/([^/]+)/([0-9]+)([-_][^/]*)?\.html						/classifieds/index.php?view=showimg&posterenc=$3&imgid=$4&cityid=$1 [QSA]
                                                                                                                                                 
    # Images by user, paged                                                                                                                       
    RewriteRule ^([-]?[0-9]+)([-_][^/]*)?/images/([^/]+)/page([0-9]+)\.html							/classifieds/index.php?view=imgs&posterenc=$3&cityid=$1&page=$4 [QSA]
                                                                                                                                                  
    # Top Images, paged                                                                                                                           
    RewriteRule ^([-]?[0-9]+)([-_][^/]*)?/images/page([0-9]+)\.html								/classifieds/index.php?view=imgs&cityid=$1&page=$3 [QSA]
                                                                                                                                                  
    # Images by user                                                                                                                              
    RewriteRule ^([-]?[0-9]+)([-_][^/]*)?/images/([^/]+)									/classifieds/index.php?view=imgs&posterenc=$3&cityid=$1 [QSA]
                                                                                                                                                  
    # Top Images                                                                                                                                  
    RewriteRule ^([-]?[0-9]+)([-_][^/]*)?/images										/index.php?view=imgs&cityid=$1 [QSA]
                                                                                                                                                  
    # Quick ad/event/image                                                                                                                        
    RewriteRule ^([-]?[0-9]+)([-_][^/]*)?/showpost/([0-9]+)([-_][^/]*)?\.html							/classifieds/index.php?view=showad&adid=$3&cityid=$1 [QSA]
    RewriteRule ^([-]?[0-9]+)([-_][^/]*)?/showevent/([0-9]+)([-_][^/]*)?\.html							/classifieds/index.php?view=showevent&adid=$3&cityid=$1 [QSA]
    RewriteRule ^([-]?[0-9]+)([-_][^/]*)?/showimage/([0-9]+)([-_][^/]*)?\.html							/classifieds/index.php?view=showimg&imgid=$3&cityid=$1 [QSA]
                                                                                                                                                  
    # City/Region                                                                                                                                 
    RewriteRule ^([-]?[0-9]+)([-_][^/]*)?											/classifieds/index.php?view=main&cityid=$1 [QSA]
    RewriteRule ^([-]?[0-9]+)([-_][^/]*)?											/classifieds/index.php?view=main&cityid=$1 [QSA]
    
    Code (markup):
     
    saudshah, Jul 11, 2010 IP
  2. sarahk

    sarahk iTamer Staff

    Messages:
    28,901
    Likes Received:
    4,555
    Best Answers:
    123
    Trophy Points:
    665
    #2
    are the links being written as you'd expect?
     
    sarahk, Jul 12, 2010 IP
  3. saudshah

    saudshah Peon

    Messages:
    58
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    no its script default urls, when i off seo option it works fyne, but when i turn on seo it dont work
     
    saudshah, Jul 12, 2010 IP