More control over Domain Pointers

louisk

New member
Joined
Apr 5, 2011
Messages
1
I would like some more control over domain pointers. Maybe someone can help me accomplish this.

I have a main domain name, domain.com.
Then I have about 100 domain pointers, like, domain.fr, domain.it, dom-ain.it etc.

1. Could it be added to the next version (point) release that I can change multiple domain pointers from alias to pointer (with a drop-down)?
At the moment I have to delete the pointer, and re-ad it as an alias (or visa versa), very time consuming.

2. I would like to have some more control over a domain pointer. For example, I would like to redirect domain pointer domain.it to domain.com/it/ and domain.fr to domain.com/fr/
At the moment I cant only do that by adding domain.fr as an actual domain in domain setup, thus, creating all kinds of things I don't need, like email etc. It would be better, some how, to be able to ad .htaccess files for domain pointers on a per-domain pointer basis.

Hope you can help
 
Hello,

1) The pointer vs alias types are created differently, so in terms of the internal DA code, at the moment it's easiest to delete and re-add the pointer.

2) To avoid having to add complexity to the code, I can recommend a few tricks which would work to accomplish what you're describing.
  1. An Alias type pointer (pointer.com) will point to the same document root as domain.com. You can already use an .htaccess to redirect based on the pointer.com value using a RewriteCond check on the Host header. (if host header is pointer.com, redirect to domain.com/pointer)
  2. Along the same lines, if you're not as farmiliar with .htaccess files, you can accomplish the same thing with an index.php file, simply by checking the $_SERVER["HTTP_HOST"] variable, then doing a Location redirect.
Either method will give you 100% control over each case, more control and flexibility than DA would be able to offer it if were built in/hardcoded.
With that functionality which already exists, there is no need to have individual .htaccess files on a per-pointer basis. That's why mod_rewrite has condition statements.

John
 
Back
Top