I have a single code base where I am running multiple websites.
For example my
http://www.example1.com/Example1
http://www.example2.com/Example2
http://www.example3.com/example3
In this way the links for my page will be differ for all websites.
Now problem is that how I can create site map for websites like these.
Explaination.
I have one web application project and on that web application project I have multiple events
Now I can map these events like this.
http://www.example1.com/Example1
http://www.example2.com/Example2
http://www.example3.com/example3
So my first events has urls
http://www.example1.com/Example1/Page1
http://www.example1.com/Example1/Page2
http://www.example1.com/Example1/Page3
http://www.example1.com/Example1/Page4
Second one is like:
http://www.example2.com/Example1/Page5
http://www.example2.com/Example1/Page7
http://www.example2.com/Example1/Page2
http://www.example2.com/Example1/Page6
Now as site map can be added to root directory so there can be only one site map.
but I have number of domains mapped to a single IP. so how I can handle site map with multiple domains and with a single IP.
or I need to create multiple site maps and then i can submit that based on domain.
Create 4 different Sitemaps for 4 domains and keep them in the root directory of respective domain. or You can use server-side code to send the correct sitemap based on the domain name for requests to /sitemap.xml.
Refer the article: http://www.microsystools.com/products/sitemap-generator/help/multiple-domains-xml-sitemaps/
Related
I have a CakePHP website that is designed to let users generate their own simple 1-4 page sites.
The idea is that people go to app.example.com (where the website is hosted), create an account, and generate their website.
After generation, their website gets an ID (I have this setup as a UUID instead of a sequential counter).
Currently, users can access their websites by going to example.com/websites/{PAGE}/{WEBSITE ID}
I want to reformat that into {WEBSITE ID}.example.com/{PAGE}.
I am running all of this on a Linux server with apache, and my plan would be to use some form of wildcard DNS record for all subdomains. Users would not be expected to use their UUID subdomains for their website, but they would instead be expected to purchase a domain and setup a CNAME record.
My initial thought would be that this would somehow be done with apache, but I am not sure.
Any help or advice would be appreciated.
Sometimes, before launching new web projects, i put the site / app under a subdomain like new.domain.com or beta.domain.com.
These URLs are only meant for my clients. So they don't get submitted at search engines and there aren't any public links to them.
However, I noticed in a few occasions, these subdomains get indexed by Bing anyway. How is this possible ?
Does Bing crawl generic subdomain names like new, old, archive, beta, ... ?
Or do URLs sent in mails, get scraped in Office 365 (which my clients use) and get indexed ?
This is possible the user has installed a toolbar from that search engine.
The best way to prevent from this, is adding no-index tag for all pages in sub domain and even you can block using robot.txt.
I have 3 e-commerce websites having same contents on it,the domain name is same but the extensions of all domain is different.How to inform google that i'm the verified owner of all domains.
I just wanted to let google know and seek permission to use same content is different websites of mine, so that it wouldn't affect my ranking.
Is there any code by putting which on the 3 sites, google will got to know that these same sites are of one company's????
By "the Domain name is the same but the extensions are different" i guess you mean you have example.com, example.net, example.io.
if this is what you mean, these are considered to be three different domains. you should implement canonical urls including the preffered domain or redirect all traffic to what you consider the main domain. (e.g. redirect traffic from example.net and example.io to example.com)
For each domain you should use a txt recod to verify ownerhsip in the webmaster tools, most domain providers allow you to configure this record for each domain on your own. Log into your account at your domain provider's site and search for DNS Management, Name Server Management, Control Panel, or Advanced Settings.
Then again, many CMS or e-Commerce systems support "website aliases", where you can configure your system to answer to different domain names, when all your domains point to the same server and often allow you to configure a canonical domain, so that you may even not need to run 3 identical websites.
Please specify your setup, there is not much to go on here. A good example would be:
I currently run 3 Websites (example.com, example.net,
example.io)(Drupal) on 3 Servers, each has its own domain but they
have identical content. They do not use a shared database.
I have two domains, example.se and example.com, which I'd both like to point to the same server and just presenting different language translations when viewing the site. I'm running Apache and PHP and have set up a default page that takes a GET argument then sets the content to show in either language.
How would I configure this with Apache so that if the user types example.se, he/she would end up with example.com/?lang=se instead, while keeping the .se domain in the url? There's just one page on the site so no need to worry about routing.
I want to restrict access to a folder on my server so that visitors may only access the contents (a web application) via links in the same domain. Can I do this using .htaccess? To be clear, I simply want to prevent direct access to the contents so that visitors are routed through other pages on my website in order to get there.
Sounds to me you want URL rewriting. Rewrite all URLs to point to a single point of entry (i.e. the index page), and have the route set as a GET variable (i.e. index.php?r=css/file.css).
This way, you have complete control over what goes where, and you can include or redirect your users accordingly.