123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|718|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Web Development -> Subdomain .htaccess redirect?

Wed, 07 May 2008, 02:27
HoboBen
Hi,

Assume that I have a .htaccess file located at https://www.example.org/.htaccess

How could I use mod_rewrite to redirect https://sub1.example.org/ to https://sub2.example.org/ (where sub1.example.org doesn't exist, but I have wildcard domains which point to example.org)?

I've googled for hours, but no luck!

-=-=-
blog | work | code | more code
Wed, 07 May 2008, 02:36
HoboBen
D'oh, it turns out I did it right, but the faulty redirect was cached!

For googler's, here's what I did:



Then I refreshed, like, a gazillion times.

The purpose for it all was to stop google picking up on old sub domains that I had long since deleted that appeared to mirror my entire website on a different domain.

-=-=-
blog | work | code | more code