subdomain

All subdomains routed to same DocumentRoot, apache config

You've seen it done on sites like basecamphq.com where you would have username.basecamphq.com I'm wanting to do a similar thing, any subdomain is routed through to the same index.php file. so username1.example.com will request /home/some/path/to/www (in here is index.php) and username2.example.com will request the same file I have it ...

Url rewrites for unique site names in Wordpress Multi-site without subdomains or subdirectories?

Is there a way in multi-site WP3.0 to provide unique site names without using subdomains or subdirectories? For example, my multi-site name is sites-d.ourdomain, but I want the urls for each site instance to look like this: [site1].ourdomain (instead of sites-d.ourdomain/[site1] or [site1].sites-d.ourdomain) Our clients expect to have ...

Subdomain and favicons

I'm having trouble showing the favicon of a subdomain (which redirects to a PHP file) mc.company.com redirects to www.company.com/mc.php In the mc.php file I have included a header (templates) which has the link and stuff for the favicon: <link rel="shortcut icon" href="http://www.company.com/favicon.ico" type="image/x-icon" /> <link ...

Domain (country) realted banners in PHP based system

I have an PHP based Youtube clone system installed on our server. The same system is used in couple of countries. Let's say that I have 3 domains that all point to the same system: www.site.hr www.site.ba www.site.rs They all redirect to some site named www.site.tv These 3 countries have very similar languages so it makes sense to h...

Htaccess subdomain rules

Hi all, I use htaccess with a set of rules to control the different pages of my website. If a user visits my main site (domain.com), without using www it 301 redirects to www.domain.com (for SEO purposes) I use wildcard subdomains, so if a user visits subdomain.domain.com, they will view a specific PHP file that decides to content for...

Dynamic subdomains + defined subdomains via htaccess

I hate asking questions about mod_rewrite, but I can't seem to get these rules working properly. I had it setup and figured out once before, but a few years have passed and now it's just not playing nice and my mod_rewrite knowledge is back to uhhhh...... Essentially what I want to do is force www on the main domain, example.com. (or f...

delete coockie of an sub domain

hi all, i have a domain for example : example.com and i have sub-domain : sub.example.com the users on the site is sharing the same session & cookies, but how can i remove cookies from both the domains ? for now i delete from one domain and when the goes the the sub-domain he is logged in again .. much thanks. shlomi ...

Subdomain is preventing my search results from rising as it should in page rank

My problem is that I have a site which has requires a dedicated page for every city I choose to support. Early on, I decided to use subdomains rather than a directly after my domain (ie i used la.truxmap.com rather than truxmap.com/la). I realize now that this was a major mistake because Google seems to treat la.truxmap.com as a comple...

Cookie sharing between sites with the same top level domain

Hi guys, web newbie here, I'm sharing cookies between two sites of mine, myserver.com and other.myserver.com, by using in Django: SESSION_COOKIE_DOMAIN = '.myserver.com' This works in most cases, but when the first site is reached through an iframe like so: <iframe src="https://myserver.com/page?data=asdsafaf"&gt;&lt;/iframe&gt; ...

How can i maintain session with subdomain and https.

Hello to all, I have a problem related to subdomain and https request. I am trying to route from http to https where my http address is subdomain.domain.com and https address is domain.com/subdomain. But the problem is when i switched from http to https i loose my session variables. How can i persist my session variables in both http ...

Read domain's cookie from subdomain with Rails

Hi, In order to store some Google Analytics data, I would like to access to GA "__utmz" domain's cookie (domain=.example.com) from my www subdomain (domain=www.example.com). Is it possible to read this domain's cookie from a subdomain ? If yes, how can I do that with Rails ? cookies[:__utmz] doesn't seem to work with all browsers. I k...

Pylons/Routes Named Routes vs. Keyword Routes and Subdomains

Subdomain behavior is not working as I expect in my Pylons project. Can someone provide some insight? I was using a named route and received back a URL that did not contain my current subdomain: I have the following rule defined on my mapper: map.sub_domains = True ... map.connect('openid_verify', '/verify', controller='oid...

problem with subdomain after redirection nameserver

Hello all, I have redirect my domain from one server to another.And my website has sub domain concept.Before redirection this was running well but when this redirected (nameserver) to another server my subdomain is not opening.But another which related with "www" is opening well.I am getting an error " Network - DNS Lookup Error The a...

How to setup multiple subdomains on lampp?

Hi , I need to set up multiple projects on lampp. How can i create sub domains for these multiple projects. My projects are in cakePHP. Can anyone help me? ...

htaccess - Rewriting requests for subdomain to a folder, with query string

Hi, I'm trying to get a subdomain rewrite working using an Apache htaccess file and need some help please. I am trying to get requests for http://xyz.example.com internally handled as if the user had requested http://example.com/xyz so the user does not see this URL in their address bar - they see the subdomain version. This is slight...

Kaltura Install on Plesk / Media Temple DV3.5 apachectl error

Hello All, Some pain today as with everything new and exciting. I am attempting to install Kaltura CE on a subdomain on my Media Temple DV runnning plesk 8.6.0. I get to a step that asks for my apachectl path and I enter correctly but keep getting errors as listed below. I do know this is meant to be on a dedicated box but as with ev...

Map subdomains to wordpress tags

I want to map subdomains to my wordpress tags. So when a user visits mytag.myblog.com, he should see the page myblog.com/tag/mytag (without redirect, though). This will require some modification of the wordpress code and setting up "catch all subdomains" for the domain in apache. The latter part should be no problem. I found a plugin th...

blogger.com subdomains

When one registers for a blog in blogger.com, a sub-domain gets created i.e. your_blog_name.blogger.com My question is - Is there no limit to the number of sub-domains you can create with a single domain name? I am just curious as to how blogger (or any other blog hosting platform) does this? ...

Subfolders in subdomains

I have a site: myname.host.com I have a domain: www.myname.nl I have some subfolders for different subsections but also completely unrelated websites. How do I make sure in the DNS setup that: blog.myname.nl gets me to myname.host.com/blog/ blog.myname.nl/archive gets me to myname.host.com/blog/archive blog.myname.nl/randomfolder get...

Subdomains vs folders/directories

Hi all, I'm currently building a web application and I would like my users to have their own URLs to identify them. I could either do this using subdomains or using folders and am wondering what are the advantages and disadvantages of either one. I really like the folder solution because my URL mapping would be fairly easy. I have read...