- Code: Select all
RewriteEngine On
RewriteRule (.*)\.css $1.css [L]
RewriteRule ^$ /cgi-bin/page.cgi [L]
RewriteRule ^(.*).html /cgi-bin/page.cgi?g=$1.html [L]
RewriteRule ^ergo/([^/]+)/(.*)/$ /cgi-bin/jump.cgi?ID=$1 [L]
RewriteRule ^game/([^/]+)/(.*)/$ /cgi-bin/jump.cgi?ID=$1 [L]
it works for http://www.ergo247.com/Arts/index.html but not for http://www.ergo247.com/Arts or http://www.ergo247.com/Arts/
I need to figure out how to make it work for the last two url's with and without trailing slash as well as one ending in index.html and I just cant remember enough about rewriting to get it sorted out.
To complicate matters it needs to be able to cope with multiple directory levels such as http://www.ergo247.com/Arts/something/ and http://www.ergo247.com/Arts/something/s ... something/ etc also with and without trailing slash as well as ending in index.html
Some spidering bots are handling the site just fine but some are failing with 404 errors trying to access without url ending in index.html
Can anyone help?
BTW webserver site is on is down just at this point of writing this unfortunately, should hopefully come back up soon.