Home Forums Support Widget Support Real Search Exlude folders from search

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #22751
    Anonymous
    Inactive

    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!

    #22783
    responsive-muse
    Keymaster

    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.
    #22788
    Anonymous
    Inactive

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

    #22797
    responsive-muse
    Keymaster

    That’s great! thank you 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Exlude folders from search’ is closed to new replies.
Scroll to Top