Suppose I have a .htaccess file, which would take a SEO-friendly URLs like
www.site.com/sub-category/vegetables etc, and redirect them to the file
www.site.com/sub-category/page_generator.php?item=spices. That is,
page_generator.php would take the last part of the URL as a GET parameter, and then generate the page with database calls.
I do not know a lot a about search engines, but I think that a search engine cannot see
page_generator.php (since it's hidden by .htaccess), and thus associates the resulting webpage with the URL
www.site.com/sub-category/spices, and not
www.site.com/sub-category/page_generator.php?item=spices, which is good in terms of SEO.
Is this correct?