Forum Moderators: phranque
http*//domain.tld/cgi-bin/ikonboard.cgi?s=af0f848fce80fd2094425ebc6c8ad310;act=SF;f=6
Would a mode_rewrite like this make it crawlable so Google can index the message, or am I wrong here?
^(.*)ikonboard/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)\.htm$ $1cgi-bin/ikonboard.cgi?$2=$3;$4=$5;$6=$7
If this would work, is it anything more I need to do?
I don't think that's going to work, since the fields don't match (there are not six slashes in
http://domain.tld/cgi-bin/ikonboard.cgi?s=af0f848fce80fd2094425ebc6c8ad310;act=SF;f=6, ^(.*)ikonboard/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)\.htm$ $1cgi-bin/ikonboard.cgi?$2=$3;$4=$5;$6=$7 won't match). The search engines don't like cgi with query strings anyway, so rewriting to a URL that still contains ".cgi?(anything)" isn't likely to help.
You might try making [domain.tld...] accessible from an apparently-static URL. That is, publish links that look like this:
http://domain.tld/board/SF/6/af0f848fce80fd2094425ebc6c8ad310.html
ikonboard would need to be modified to output the links which contain no ".cgi" and no query strings (perhaps by wrapping ikonboard in another simple script), and then letting mod_rewrite provide "feedback" into ikonboard by rewriting these SE-friendly URLs back to ikonboard-style URLs:
RewriteRule ^board/([A-Z]{2})/([0-9])/(0-9a-z)*\.html /cgi-bin/ikonboard.cgi?s=$3;act=$1;f=$2 [L]
The basic idea is that any URL "seen" by a search engine should look like a static html page. Therefore, any html output visible to the search engine should not contain ".cgi" and/or a query string. Remember that mod_rewrite executes in response to a URL request during the process of converting that URL into a local file pathname on your server. So, the search engine must request a SE-friendly URL, and mod_rewrite will translate it to the form that ikonboard expects; ikonboard must then output pages with more SE-friendly URLs in order for the SE to spider those pages. As such, the above process may be the reverse of what you thought it should be.
I haven't worked with ikonboard, and I personally use only a very few, very simple script-cloaking rewrites, so I hope this helps!
Jim