domain

What is the best way to create multiple language versions of a domain?

I would like to create a set of domain objects in multiple languages, so that I can target different platforms. I have been looking at external DSLs as a way to define a language for my domain, and then potentially writing adapters that generate code for the languages I'm interested in targeting. Is this the best way to solve this prob...

Redirect parked domain (htaccess)

I have two domains in the format of foo.com and foo.net. I currently have the following in my .htaccess to redirect non-www to www: # Rewrite URL to force WWW RewriteCond %{HTTP_HOST} ^[^.]*\.[^.]*$ RewriteCond %{SERVER_PORT} !=443 RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L] RewriteCond %{HTTP_HOST} ^[^.]*\.[^...

How To Programmatically Create Addon Domains on Shared Hosting Plans

On Linux-based shared hosting that is administered with cpanel, is there a programmatic way to create, sort of reliably, addon domains for my site if I know my cpanel login information and/or FTP information? Note: interested in PHP and cpanel in this case. ...

Whats the technology behind sites like (Google Sites, Shoppify etc)?

I am wondering how sites like Google sites and shopify allow customers to create a website and then link it to their own domain?. Google sites allow a user to create their own website, at a user supplied domain, and shopify allows a user to create their own e-commerce site - once again, they can supply their own domain to be used to acce...

Cookie across different domains

I am working on building a learners website (http:localhost:8080.xyz.com).This is being built on glassfish server using gwt.I need to integrate forums(http:localhost:8888.abc.com)into this site .The forum is built using php and is on Apache Server. Both the websites share the same MySQL database and this database has a table named sessi...

Subdirectory on a different host

I've got a site www.example.com on one server. I'd like to create www.example.com/blog on another server/host. A) Can I do this? B) How can I do this? I've read a bit on using Apache's mod_proxy, proxypass, and ProxyPassReverse, but I'm not gifted enough with Apache or server mgt to know if I'm on the right track or not. Or, if there...

Apache mod_rewrite: how to redirect addon domains subfolder access to addon domain itself?

Situation (directories tree) on an Apache server: maindomain.com/ | |_ .htaccess (just an empty file, no rule in here) | |_ addondomain1.com/ | | | |_ .htaccess | |_ index.html | |_ addondomain2.com/ | |_ .htaccess |_ index.html Currently files in addondomain1.com can be viewed by going to: http://www.addondomain1.com/ind...

Apache mod_rewrite: explain me %{HTTP_HOST} expecially when using addon domains

Apache mod_rewrite: explain me %{HTTP_HOST} expecially when using addon domains Situation (directories tree) on an Apache server with addon domains: main-domain.com/ | |_ .htaccess (just an empty file, no rule in here) |_ index.html (shown when accessing http://main-domain.com) | |_ addon-domain-1.com/ | | | |_ .htaccess | |_...

Forwarding naked domains with full URL structure intact on GAE

So I followed Nick Johnson's instructions on how to forward a naked domain: http://blog.notdot.net/2009/12/Naked-domains-on-App-Engine and configured GoDaddy to use a 301 redirect to the "www" subdomain of my site. However, the problem I'm still having is that when I enter http://mydomain.com/foo/bar, it gets forwarded to http://www.m...

Questions about implementing Domain class relationships & constraints in Grails.

Using ArgoUML, I very quickly created this trivial representation of a few Domain classes (Person, Store, Product) and their relationships. I'm struggling with the implementation of the relationships. Below was my initial approach for the Person domain, but it seems that I am missing something important. class PersonToPerson { ...

Routing by hostname in CakePHP

Is it possible to do domain-specific routes in cakephp? for example, let's say I have 2 domains: manufacturer.com and productname.com productname.com is parked on manufacturer.com. I'd like to create a route like this: Router::connect('http://www.productname.com/', array('controller' => 'products', 'action' => 'view', 'productSlug'))...

MySQL permission denied from local but can connect remotely

I am trying to connect to my mysql database on a remote server (via ssh) through the command: mysql -u me -h mydomain.com -p But it fails with a ERROR 1045 (28000): Access denied for user.. error While mysql -u me -h localhost -p Works Now this isn't just because I have not setup permissions, because the permissions to this data...

Copying and identities

We have deployed a solution which periodically needs to copy a file from one server (Server A) to a shared folder on another server (Server B). Server A is in a domain and and Server B isn't. The copying will take place in a process running as a Windows service. My issue is how to do this the best way with regards to the share on Server...

How to allow customer subdomain sites to use their own domain

I have a rails app where customers sign up and get a custom subdomain site/url like this: customer1.myapp.com customer2.myapp.com customer3.myapp.com What are the steps I need to take to allow a customer to use their own registered domain name such that their domain points to my app? So, in the example above, if "customer1" owns "cu...

google sites as my web site in my domain.

Hello everyone. I bought a domain www.whatever.com and i'm currently using google apps. Is there a way i can use one of my google sites as my website in my domain? To explain myself better: When anyone access my domain www.whatever.com i want people to see my google site i created with google apps. Thankyou very much for your answers. ...

fluent Nhibernatetest mappings

Hi there I am using fluent Nhibernate and Id like to write tests for my mappings as shown below I have a scenario where I have a User class, and a UserProfile class The User class is an entity and the UserProfile is a value type, there is a 1:1 relationship between the two. How would I test the mappings based ont this, do I write separa...

How to serve multiple domains with a single ASP.NET MVC application?

How to implement a mechanism (within a single ASP.NET MVC application) to ensure that: if request comes on mydomain (user visits mydomain.com) -> handle using certain set of controllers if request comes on otherdomain (user visits otherdomain.com) -> handle using different set of controllers (the domains are aliased to the same web h...

What is the difference between the http://website.com and http://www.website.com URL of a website?

Possible Duplicate: What’s the point in having “www” in a URL? Hello, I have little to no experience owning a website but I am willing to learn all that there is to this process. However I am frustrated because I am constantly blocked by simple problems. I just uploaded my first index.html page which is basically a backgroun...

force CamelCase on domain name in browser's address bar

Can I force a domain name to appear CamelCase in the browser's address bar? All browsers seem to force lowercase on the domain. Can this be accomplished with the .htaccess file... or some other means? I'm generally fine with the all lowercase default, but have a client who has asked, and would like to give a definitive answer. ...

Finding out all websites hosted by a webhosting service

How can I determine all the websites which are using a particular webhosting service? There are some services which CLAIM to give you this information, but charge a lot... markosweb.com was particularly nice, but not complete. Help, folks? ...