Twitter

Domain redirects fixed, 301 redirect (3)

After reviewing the server logs (again) it seems I overlooked something in the htaccess rule I put in place :(

It transpires that if the address was www.(one of my domains).com then it would not redirect to www.willgresham.com Dx

So I have modified the rule to forward any subdomain through to www.willgresham.com.

Here is the modified rule:

  1. RewriteCond %{HTTP_HOST} ^([a-z0-9.]*)(elvenblade|torchhosting|lingerin|concertuner).co(m|.uk)$ [NC]
  2. RewriteRule ^(.*)$ http://www.willgresham.com/$1 [L,R=301]

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • You can use BBCode tags in the text. URLs will automatically be converted to links.
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.