Home Forums Support Widget Support Real Search Exlude folders from search

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • Mauricio
    Participant
    Post count: 2
    #22751 |

    Hi, Can I exclude foldes from the server for search?… thats because I put all the html files in the search options widget… but don’t let me put all the pages, there are more than 20 pages!… so that’s my question… by the way, great widget! thanks!

    responsive-muse
    Keymaster
    Post count: 142
    #22783 |

    Hi Mauricio!

    You can exclude whole folders doing some edits in scan.php

    It should be possible doing some code changes in scan.php

    You can try to change around line 24:
    
    if ((strpos($dir, 'phone') !== false)||(strpos($dir, 'tablet') !== false)) {
    
    For this line:
    
    if ((strpos($dir, 'phone') !== false)||(strpos($dir, 'tablet') !== false)||(strpos($dir, 'myfolder1') !== false)||(strpos($dir, 'myfolder2') !== false)||(strpos($dir, 'myfolder3') !== false)) {
    
    And replace myfolder1, myfolder2 and myfolder3 for the folder names you want to exclude.
    Mauricio
    Participant
    Post count: 2
    #22788 |

    Wow, it worked perfectly!!! thanks a lot!

    responsive-muse
    Keymaster
    Post count: 142
    #22797 |

    That’s great! thank you :)

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.