Bookmark and Share

19

Apr

2010

A client of mine has an area of their website that can be accessed via several different domain names, all mapped to the same folder/file structure. (ignore the SEO problems that causes for now ;) ).

They wanted part of this website to only be accessed by one domain, and create a 404 error otherwise. I achieved this with a quick URL Rewrite:

Apache Conf:

RewriteCond %{SERVER_NAME} !^websubdomain\.somedomain\.co\.uk
RewriteRule (.*) - [R=404,L]

Comments (1)

ultrasound technician

ultrasound technician said at 04:36 on 20th May 2010

Pretty nice post. I just stumbled upon your blog and wanted to say that I have really enjoyed browsing your blog posts. In any case I’ll be subscribing to your feed and I hope you write again soon!

 

Post a comment

Post comments to this article by filling in your details below.