I'm trying to redirect addresses at http://richardxthripp.com/richardxthripp$ to http://richardxthripp.thripp.com$, where $ is a wildcard. So far I have this:
- Code: Select all
RewriteCond %{HTTP_HOST} ^(www\.)?richardxthripp\.com
RewriteRule ([a-z0-9-]+)/? http://$1.thripp.com [R=301,NC,L]
... but it always redirects to richardxthripp.thripp.com. How can I change this so it keeps the tail end of the URL?
Thanks,
Richard