Do I really have
221,000 pages indexed in Google? If I do then its thanks a bunch to the guy who wrote the Apache
mod_rewrite module.
Besides making coffee, mod_rewrite can do cool stuff like make the URLS of your website search engine friendly. So for example...
www.dannychoo.com/index/eng/
is the same as
www.dannychoo.com/index.php?language=eng
but "www.dannychoo.com/index/eng/" is much more search engine friendly - especially when you have a ton of variables stuck on the end of a URL.
In general, a search engines robot tries to avoid slurping up too many pages which look dynamic (pages with all those variables stuffed on the end) - this is because a website can generate an infinite amount of pages through the use of scripts.
But what if you legitimately have a website with a few thousand products and want Google to slurp up all the pages?
While I cant guarantee that Google will slurp *everything* up, the use of mod_rewrite will help quite a bit.
I will keep this as short as possible as this is all you need to know to get you started.
I created a file called ".htaccess" and saved it in the root directory of my website and stuck in the following...
RewriteEngine on
Options +FollowSymlinks
RewriteBase /
RewriteRule ^index/(.*)/ /index.php?language=$1
Then in my code I have a link like...
<a href="/index/eng/">English</a>
What mod_rewrite then goes and does is look at the rules in my .htaccess file and maps "/index/eng/" to "index.php?language=eng". And that should be enough to get you going.
BTW, you can check how many pages you have indexed in Google using the following query.
allinurl:+www.yoursite.com+site:www.yoursite.com