I have a folder on my site that is not paying any attention to my main htaccess. I do have a htaccess in the gallery folder and the code below is what is in there to make the friendly urls. What changes/additions would I need to make to have this folder react as the rest of my site? Should I move this code to the main htaccess and update the paths?

Code:
RewriteEngine On

    RewriteBase /gallery2/

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d [OR] 
    RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php
    RewriteCond %{REQUEST_URI} !main.php?
    RewriteRule .   -   [L]

    
    RewriteCond %{REQUEST_URI} !main.php?
    RewriteRule ^v/$  /gallery2/main.php?g2_view=core:ShowItem   [QSA,L]

    RewriteCond %{REQUEST_URI} !main.php?
    RewriteRule ^d/([0-9]+)-([0-9]+)/([^\/]+)$ /gallery2/main.php?g2_view=core:DownloadItem&g2_itemId=$1&g2_serialNumber=$2   [QSA,L]

    RewriteCond %{REQUEST_URI} !main.php?
    RewriteRule ^v/(.+)$   /gallery2/main.php?g2_view=core:ShowItem&g2_path=$1   [QSA,L]