Google seems to have annoyingly picked up some links to development areas of a site I’ve just finsihed. These pages are either no longer there, or I don’t want them looked at.
I’d like to redirect anything in the folder “domain.co.uk/dev/” back to simply just point at the homepage “domain.co.uk”
I thought this would be straight forward, but I can’t seem to get it right.
I’ve tried various different combinations of this:
RewriteRule ^dev/? http://www.domain.co.uk/ [R=301]
But nothing seems to work. It either does nothing, or it cocks up apache and I get a load of Internal Server Errors.