Tag Info

New answers tagged

8

You're right that the trick is a wildcard DNS entry (indicated with asterisk) . Essentially it's a DNS entry that will match all subdomains that don't have a specific DNS entry. Then the "routing" happens on the application/website side. There is no actual DNS entry created for the subdomain, the reason that it finds a "match" when a DNS request is made, is ...


2

When you redirect your example.com to www.example.com, using a 301 redirect, all your existing link-juice will also transfer to the www version. But if you're going to redirect it using a 302, that may block link-juice from flowing to www version. So redirect your site without the www to the one with the www using a 301 redirect, and also put a canonical ...


2

I'd recommend you run Universal Analytics on both your main site and subdomain under a single property and then create views to separate the sites, as well as a view of everything combined. The downside of this is you'll lose an historical data. This will allow you track the full funnel + revenue by source and a bunch of other metrics you'll want to collect ...


1

Send all request (ServerAlias *.*.example.com) to a php file. And redirect where you want : $url=$_SERVER['HTTP_HOST']; $subdomains=explode('.', $url); $subdomains[0] : first subdomain $subdomains[0] : second subdomain ... You can redirect with header('Location: '.$URL);


2

To restrict the use of foo.bar.sites.example.com you have to place another VirtualHost above the existing one: <VirtualHost *:80> ServerName foo.bar.sites.example.com ServerAlias *.*.sites.example.com # .... </VirtualHost> Now you can block or redirect the access. However it's important that you place it above the other VirtualHost ...


1

It depends how you want to manage your domain DNS. If you're using your domain registry DNS, you need to only change the record of your subdomain to point to your new server's IP address. If on the other hand, you like to manage your domain DNS using your hosting provider control panel or WHM etc, you then need to change your domain nameservers at your ...


0

Real SEO it depend on your SEO strategies that how you do SEO for your blog & Site. According to my experience Its ok that you are using your desired platform for your website. But for Blog , use wordpress because it is good , easy and user friendly CMS. Even a non-technical person also can handle blog if setup through wordpress. In concern of SEO ...


0

The exact rules for when a wild card is match are specified in RFC 1034, but the rules are neither intuitive nor clearly specified. This has resulted in incompatible implementations and unexpected results when they are used. Your DNS should look like this A NAME (blank or @ on some systems) FQDN domain.com IP A NAME www FQDN www.domain.com IP A NAME ...


0

The only way that the CSS and JS would be loaded from an IP address is if the HTML code specifies that. You will need to change your HTML code from: <link rel="stylesheet" type="text/css" href="http://192.168.10.10/css/default.css"> to a relative link: <link rel="stylesheet" type="text/css" href="/css/default.css">


0

Every domain will be acessible by http://www.example.com and http://example.com as http://www.subdomain.example.com and http://subdomain.example.com Including any subdomain, to solve this problem you just need do a 301 redirect to force your visitors to acess only. This will be good for your SEO and google ranking because your page rank is shared by ...


1

Here is the solution: open page on your domain folder wp-admin\network\site-new.php replace if ( preg_match( '|^([a-zA-Z0-9-])+$|', $blog['domain'] ) ) with if ( preg_match( '|^([a-zA-Z0-9.-])+$|', $blog['domain'] ) )


1

You can't create a subdomain using only PHP application. First you need to configure apache virtual host to accept requests for multiple domains. <VirtualHost *:80> ServerName www.example.com ServerAlias example.com *.example.com DocumentRoot /www/domain </VirtualHost> With wildcard subdomain *.example.com, main domain will ...



Top 50 recent answers are included