subdomain

Subdomain not reading modules or themes folder under sites/all/

I have a site set up with drupal, everything going fine. I then added a subdomain, and that too was fine until I went to enable a custom theme that was under the sites/all/themes folder. The theme does not show properly in the admin panel (no thumbnail), and when activated, the site appears to have no structure at all. The theme I am ...

subdomain creation

Hi may I know what is the difference between http://www.forums.duckyvideos.com and http://forums.duckyvideos.com ? Actually I've created a new subdomain in my website. It is working fine when I try to access without www (i.e http://forums.duckyvideos.com) But when I try to give url like http://www.forums.duckyvideos.com it is showing p...

How to check whether the current URL has subdomain name using c#?

I need to check whether the current URL has the subdomain name and if it has the subdomain, I want extract it from the URL. Could anyone konw how to do this in the C# in an ASP.NET MVC app. Thanks. ...

DotNetNuke : How to do single sing-on to multiple portals

I have a Dotnetnuke environment with multiple portals running at different subdomains (serviceA.company.com, serviceB.company.com). I can allow users the access to each portal by adding rows to UserPortals table, but since DNN uses full domain name in the auth cookie, the users need to log separately to each portal. I'd like to have the...

Cookies of domain are sent to subdomain, how to fix?

Firefox is sending my ".domain.tld" cookies when I go to sub.domain.tld. How can I make sure that the browser only sends cookies of ".sub.domain.tld" and not ".domain.tld"? ...

Which subdomains should I prevent from users selecting?

Hi We're creating one of those apps which is trend-of-the-day-compliant, letting users select their own subdomain. xxx.company.com As this is becoming common, it would be good to compile a list of subdomains which should be prevented from allowing users to select either for technical/security reasons (eg :www) or etiquette (eg: sex)....

avoiding redirect

Depending on the subdomain I want to call a specific controller. What I currently do: My page uses the subdomain to identify users like username.site.com. I get the username, look it up in the database and render the appropriate data in the UsernamesController. the only exception to this is www.site.com or site.com . In that case anot...

Custom 401 Error Page for SVN Server

I have SVN server running on one of my domains as svn.mydomain.com and would like to setup a 401 error document for when the user authentication fails. As svn isn't an actual folder or real subdomain, i'm confused as to where I can put the ErrorDocument 401 line. It doesn't have to be in the .htaccess file, if it will work I could put ...

IIS: create subdomain for mail server (newbie)

hi all, when adding a new domain in the iis-manager (eg. www.myurl.com), whats the easiest way to auto-set up a mail subdomain for it (mail.myurl.com)? 2nd how do i connect the mail subdomain to the mailserver? thx ...

Dynamic subdomains in asp.net mvc

I am fairly new to asp.net, and have little experience with iis. I would like to have each user of my application get their own sub-domain, but all use the same controllers. The subdomain would then control what content is displayed. Example: user1subdomain.mydomain.com/Whatever user2subdomain.mydomain.com/Whatever Will both use the ...

Apache mod_rewrite - rewriting from subdomain to main domain

Hi, I want to redirect a url abc.xyz.com/123 to xyz.com. So the file that will be accessed will be index.php of xyz.com. That index.php should have available to it both abc and 123 (so 123 will be $_SERVER['PHP_SELF'], and abc will come out of $_SERVER['HTTP_HOST']) to enable appropriate processing. abc.xyz.com already goes to xyz.com ...

mod_rewrite not working consistently

I've got a rewriting scheme going on that was working fine. Basically, anything in the url is passed as a querystring to index.php, so /dave/bob is rewritten to /index.php?page=dave/bob. I deal with the parsing of this in index.php. Here's my .htaccess: RewriteEngine on RewriteRule ^([^\.]+)?$ index.php?page=$1 [L] The problem I'm hav...

Wordpress-mu subdomain

I installed wordpress-mu on a Windows machine and set it up so that i can have addresses like myblog1.blog.ph. I have configured the DNS settings for such. blog.ph works fine, but the sub-blogs like myblog.blog.ph show the following screen: http://yfrog.com/0jerrvxj So what do I do now? ...

Is 301 the correct redirect code for "fake" subdomains?

My site assigns each user a fake subdomain along the lines of http://username.mysite.com/ which redirects to http://mysite.com/shop/username The second link is the one used internally, is assigned as link rel="canonical", and what I want to display in the browser as the correct url, the subdomain is basically just a convenience fo...

How to implement real time sub domain in PHP?

Suppose domain is domain.name, after a new user sign up,need to generate a new domain:user1.domain.name. How to implement it? BTW,is there a limit for the number of sub domains? ...

subdomain vs. subdirectory in web programming

There are two main strategies for handling multiple "applications" on the web: subdomains (e.g. wiki.example.org, blog.example.org, admin.example.org, api.example.org/v1) subdirs (e.g. example.org/wiki, example.org/blog, example.org/admin, example.org/api/v1) What are the differences (advantages and disadvantages) of these two soluti...

.htaccess subdomain and /

username.domain.com/file rewrite to domain.com/q.php?user=username&url=file how do that? Thanks. Sorry for my English. ...

Adding subdomain support into lighttpd

I have a lighttpd server with website placed in /home/httpd/example.com/httpdocs and there I have a file called file.php. When I type http://en.example.com/file.php I would like to display file.php that is in default website directory (mentioned above). So I used document-root described here: http://redmine.lighttpd.net/wiki/1/Server.d...

Avoiding SEO indexing while under subdomain

So my company has made an affiliate deal with a news portal. It links to our e-shop in a well-seen place on their home page, and in turn, we share the profits of any conversions that come from their link and we also display their advertisements to visitors that came to us through them. That's all fine and dandy. The unfair part is that ...

Analysis of url

hj.nm.google.com How to you look at hj.nm,is it a server named hj.nm? (What should $_SERVER['SERVER_NAME'] be?) ...