I use the following rule to redirect pretty urls from http://hostname.co.za/geoip/123.12.123.34
to http://hostname.co.za/geoip/index.py?ip=123.12.123.34
.htaccess in /geoip
RewriteEngine on
RewriteRule ^(.*\..*\..*\..*)$ /geoip/index.py?ip=$1
This works fine to match only ip's, but when I try this, it gives a 500 server error:
RewriteEngine on
RewriteRule ^(.*\..*)$ /geoip/index.py?ip=$1
I want to match not only ip's, but hostnames with at least one fullstop as well. I have no idea why this shouldn't work...