I will be using one hosting account with several domains parked on it along with a main domain name. I need to be able to show different content based on what domain is being accessed. So, my question is, how can I test this locally?
I have Vista
I use XAMPP
Any help with this would be greatly appreciated?
You can define multiple domains in your hosts file.
you can find it C:\Windows\System32\drivers\etc
There are examples written there to help you understand, how it works. then create a page lets say index.php and parse the domain there and redirect it to relevant domain.
Related
I was browsing the web to find out if I can I have my own custom extension. Turns out it's a long process, but can I have these extensions : .ai (or) .java (or) .py for my website?
Please explain where and for how much can I buy any of the above mentioned extension.
Refer : https://www.iana.org/domains/root/db
To get a domain under the .ai just need to find a register that support if, for example: https://www.namecheap.com/domains/registration/results.aspx?domain=foo.ai
To register a new TLD you could check these guidelines/faq, here are some links
https://newgtlds.icann.org/en/applicants/global-support/faqs/faqs-en
https://www.icann.org/news/announcement-2-2008-10-23-en
I did a quick research and:
.java is a private TLD owned by Oracle and currently they do not sell domain names with it.
.py domain names are not available, but are available in second level domains like .com.py, .net.py and so on. You can by them from nic.py
.ai domains can be registered for a minimum of two years and the price is $68.88/year. Here is more info: Namecheap
Getting the .AI domain through their main registrar can be a tedious process, so I would rather recommend Namecheap, Temok or EuroDns as they will handle the registration faster and save you time. For more detailed information check AI-domain-FAQ.
Lanexbg already gave enough information about .java and .py and I have nothing to add there.
I have linked a custom domain name through GoDaddy to my Blogger blog. It all works fine. For example, my domain name is (example, not the real site) www.myblog.com. My blogger site is (again, example, not the real site) www.myblog.blogspot.com.
It all looks the same on the home page. The issue comes when I click on a specific post. For instance the post "Great Cake" under the blogger address shows up www.myblog.blogspot.com/greatcake. However, the domain name (the one I want to use) still only shows up as www.myblog.com, no matter what page I am on. Because of that, I cannot share links for individual pages, only for the whole blog itself.
I hope that made sense. I'm looking for a way to have the domain name (that is forwarded with masking through GoDaddy) also reflect individual posts and pages with an individual web address.
Can anyone explain how I could do that? Because I'm not sure how to word the question, I'm having no luck trying to find an answer on the internet, though I find many blogs that do what I want mine to do and are also powered by Blogger. Please help!
It sounds as if you have done the basic GoDaddy setup (I'm using Namecheap), but you may not have completed the blogger setup. Instructions are here https://support.google.com/blogger/troubleshooter/1233381?hl=en#ts=1734115
New Blogger no longer provides custom domain. Read how to set up the custom domain in 30 just minutes, if that is the case link
I would like to put a website on two domains like the following:
www.abc.com/xyz
and
www.xyz.com
I don't want to do redirect. Is this possible? I am using IIS.
Thanks.
yes, possible... you need 2 separate websites and you need to setup a virtual folder on the first one (abv.com/xyz) pointing to the folder of xyz.com
I have yet another .htaccess question, simple for you, not so much for me.
Let's say my main site is found at http://domain.com. I do all of my pre-release testing at sandbox.domain.com and sandbox.domain.co. I just realized that Google has gone ahead and indexed my sandbox sites... Ugggh!
The document root folder on my Apache server with the live site is always called ALIVE, and in order to make my sandbox contents live I quickly rename the folders, ie ALIVE->OLDx, SANDBOX->ALIVE.
My goal is to prevent indexers and users from accessing my sandbox pages. I am trying to design a .htaccess file for document root that only allows my ip address when accessed from a sandbox subdomain (sandbox.domain.com), otherwise it allows everyone when accessed from the main domain (domain.com). This would eliminate the process of remembering to update the .htaccess file each time I release a new site.
This doesn't seem too difficult, but I haven't been able to find the right combination. Any pointers in the right direction will be much appreciated!
Create a .htaccess inside each folder (like sandbox):
order deny,allow
deny from all
allow from YOUR IP HERE
I have two intranet website but they are as folders under default website so I would access as //server-internal/websitedirectory1/ adn //server-internal/websitedirectory2. Users don't like this. They want to access with some meaningful name like website1.intranet.com and website2.intranet.com. How can I achieve this? Thanks a lot.
You will have a problem if these two "sites" share session information. Test this by setting up two virtual folders.
You need to add multiple Web Sites in IIS and set them to respond to different Host headers (in Properties)
You'll also need to set up DNS.