To enable complete deep indexing of our site I am "playing" with the linux ReWrite rule and creating a search engine only site map of my dynamic pages. This is because only a few of the major search engines follow dynamically generated pages.
eg script.php?var1=100&var2=200
to script/query/var1/equal/200/and/var2/equal/200
I have a lot of different active scripts so the ReWrite rule must be non variable and script specific.
so far I have:
RewriteEngine on
Options +FollowSymlinks
RewriteBase /
RewriteRule ^(.*)/query/(.*)$ $1.php?$2
RewriteRule ^(.*)/equal/(.*)$ $1=$2 [N]
RewriteRule ^(.*)/and/(.*)$ $1&$2 [N]
Trouble is, the first ReWrite rule ( /query/ ) works fine, but the other 2 ( /equal/ + /and/) I cannot get to work for the life of me.
Can anyone please tell me where I am being stupid. If and when I get this going I'll post a how-to for it.