Forum Moderators: phranque
# add the www
RewriteCond %{HTTP_HOST} ^example\.com\.au
RewriteRule ^(.*)$ http://www.example.com.au/$1 [R=301]
# (temp) redirect all htm to php
RewriteCond %{REQUEST_URI} ^(.*)\.htm.*
RewriteRule ^(.*)\.htm.* http://www.example.com.au/$1\.php [R=301]
I've noticed that slurp has recently been getting 404's on http://www.example.com.au/http://www.example.com.au/widgets.php
It's happily reading the robots.txt - but I think that every other request from its robot it in this time period has had the doubled up http.
In the same time period google has had "11+2" hits (2 robots.txt, 11 others) and has had no 404s.
When I was mucking around with the htaccess I probably had a bug that caused the double up on the http and this was probably only there for about 10 minutes.
Is the code above okay - and therefore does it seem likely that slurp just happened to crawl in that 10 minute window? I do not have access to logs that are older than 24 hours (something I will address).
PS. I remember reading somewhere that a technique similar to the above does not retain google PR - is that so?
# (temp) redirect all htm to php
RewriteRule ^([^.]+)\.html?$ http://www.example.com.au/$1.php [R=301,L]
Jim