If I were to have a url like https://example.com/books
, that contained several links to urls such as:
https://example.com/books?id=foo
https://example.com/books?id=bar
https://example.com/books?id=baz
Would search engines crawl and index the content returned by these URLs? If not, what would happen if I were to use a rewrite rule in my .htaccess
file to rewrite pretty urls to ugly ones with query strings:
https://example.com/books/foo
-> https://example.com/books?id=foo
https://example.com/books/bar
-> https://example.com/books?id=bar
https://example.com/books/baz
-> https://example.com/books?id=baz
Would there be any difference/preference? Or would a search engine crawl both?