domain

PHP redirect based on HTTP_HOST/SERVER_NAME within same domain

I am trying to redirect to a specific path based on HTTP_HOST or SERVER_NAME with a PHP-script. I have tried these scripts: 1. $domain = $_SERVER["SERVER_NAME"]; if (($domain == "example.dk") || ($domain == "www.example.dk")) { header("location: /index.php/da/forside"); } ?> 2. switch ($host) { case 'exam...

Pointing domain to a page in my site

I'm having a directory website with sub-pages for each city. Like for example Newyork will have an address www.directory.com/newyork, LA will have www.directory.com/la so i want to point the the domain newyorkdirectory.com to www.directory.com/newyork and so for each sub sections... what are the options I have.. can I do this in my cod...

HTACCESS issue- domain vs subdomain.

I have got lots of ideas from google and stackoverflow- but none of those was exactly what i am looking for. here is scenario- I have bought a hosting space from a provider. I had to provide a domain name(let abc.com) as the primary domain of that hosting space. Then i have found that i have to put all the contents for that rimary doma...

How to enumerate per-Forest Active Directory domains in C# ?

This code enumerate Active Directory domains, if the mahine on which is running is part of the forest. public static ArrayList EnumerateDomains() { ArrayList alDomains = new ArrayList(); Forest currentForest = Forest.GetCurrentForest(); DomainCollection myDomains = currentForest.Domains; foreach (Domain objDomain in my...

in appengine how do i get foo.cust-one.com, foo.cust-two.com etc. to point to foo.appspot.vom

If foo is a google appengine app that can be accessed at both foo.appspot.com and www.mydomain.com How do I get various publishers to be able to access this by pointing foo.theirdomain.com to theirdomain.mydomain.com or theirdomain.foo.appsopt.com. One way is - theirdomain needs to setup a google apps account - and than install my ap...

How to determine the number of domains of a specific country TLD?

As the title says, lets say I want to get the number of .de domains: Googling: inurl:www.*.de retrieves the correct results but a lot of them are from the same domain. Is there another way to do this? ...

Anyone got any input about how to model this?

Hi all.. I need to model a calendar, and I got some ideas myself, but I would like some input from you guys :) The domain is as follows: A calendar contains time entries (think google calendar here). For each group and day in the calendar, I have a starttime and an endtime, denoting the time its possible to enter new appointments in be...

Two URLs, Same Server / Files ?

I would like to have two URL (ex: www.mycoolsite.com and www.myfunsite.com) and point them to the same server, and use some of the same files. I want a different homepage and css for each site, but evernthing else would be identical. My webhost allows me to 'park' a domain, but that changes the URL that the user sees and I'm not sure if...

multi domain multi user blog

hi, i need to develope a multi domain multi user blog. can any one give me some guide line?. ...

How can you set up website.com instead of www.website.com?

I just got a new .CO domain name and I'm curious how to make it accessible without the www. I understand that these two are not necessarily the same thing, but how does one go about securing/arranging both? I've tried googling this but it's hard to successfully google this when your major keywords are 'www' and... not www. =) ...

Why/how would a domain URL show client's localhost address?

I was trying to go to http://lustiges-taschenbuch.de which is a valid comic book site. I mistyped the address as http://lustigestaschenbuch.de and was surprised to see my own apache localhost directory (!). This happens on two computers in Windows 7. I checked my c:\windows\system32\drivers\etc\hosts file but it has nothing listed. I...

How to host sub domain on another hardware

My website (developed in PHP) is currently having 2 sub domains and hosted on the same server hardware. Due to heavy traffic, I want to move one sub domain to another hardware. Is this possible? Generally domain Name Servers point out to hosting provider DNS entries. If there are two sub domains hosted on two different servers, what are...

Domain model for my Java IDE

Hello I'm currently making an IDE for the Java platform. This IDE for education purposes only.I'm working of the documentation and in the analysis phase. Right now I'm at the stage of making the domain model for my project and I'm confused what to as to how the domain model figure would look like. The IDE will feature open/save creat...

how to change my domain Name to new one in Ubuntu Apache PHP?

Hello guys, I need help. Currently I am using Ubuntu Apache server with PHP. My server name is some rt-arr-php. I want to change it to rtapp.arr.edu Please help me. Thanks, Raj ...

Linux command to translate DomainName to IP

Is there any Linux command to translate domain name to IP? ...

How do I add domains to Heroku app using Ruby code?

I'm creating an app that allows users to use their own domain. What method do I use in my Rails app to automatically register their chosen domain with Heroku? I'll also need to deregister it if they change it. ...

ASP.net, retreive domain name /path

I need to fetch the domain name and path from the request to provide the following return values: domain1.com/default.aspx returns domain1.com/default.aspx domain1.com/ returns domain1.com/ domain1.com returns domain1.com At the moment every URL fetch function I try seems to return doma...

Connecting to Remote Desktop after changing Domain

I have a VM that is on a different domain and I have previously been able to connect with it. As a test, I changed the VM's domain to my domain and the VM's DNS to my DNS (The VM's domain trusts mine, one way). After doing this, the VM can no longer connect to the internet, but I am still connected to the VM. The next day, I try to con...

Reloading Domain Datasource

I am using an export utility to to export the contents of a datagrid in csv format. When the page loads the grids load all data. The grids have datapagers. When the user filter's, I want to be able to export the data using a click event. I have a grid in the background that I am loading on the click event then exporting the conte...

Own domain for each category

Hi, I'm running an existing Wordpress blog about a single topic with cleary distinguishable subtopics. Those subtopics generate enough interest and content that they could easily be a blog by themselves. As I'm just running this one blog, each of this subtopics represents a category. For SEO reasons I now would like to run each category...