How do I set up subdomains pointing to folder in your site

I am trying to determine whether it is possible to set up a series of subdomains such that each points to content within a folder in your site with the URL of pages displayed showing the subdomain without the subfolder name.
Case in question… If I have a website at say mysite.com.au with subfolders, dir01 and dir02 that each contain the pages I want displayed in relation to subdomains. I set up subdomains sub01 and sub02.
Is it possible to have my BC site working such that I can reference a page, say page01, within the subfolder to be displayed with its subdomain name as sub01.mysite.com.au/page01 rather than seeing it as mysite.com.au/dir01/page01
I know I can point the home page for the subdomain to a page within the folder but it still shows the subfolder in the url – I want the pages within the subfolder to be related to the subdomain and show/use url’s based on the subdomain without reference to the subfolder.
Is this possible and if so is this a simple or complex process to put in place?

Hi, I think this may help:
Create a landing page where your main domain will point to and add this code within the HEAD tag and just specify the folder for your countries as bellow demonstrated.
<head>
<script> window.location =
{% if globals.visitor.country == 'AU' %}
"/au"
{% elsif globals.visitor.country == 'US' %}
"/us"
{% elsif globals.visitor.country == 'GB' %}
"/gb"
{% else %}
"/store-unavailable"
  {% endif %}
</script>
</head>
DONT FORGET THIS WILL ONLY WORK IF YOU ENABLE YOUR BC.NEXT RENDERING FOR LIQUID CODING.
I normally use it to display messages on my site for each country as a welcome.

Similar Messages

  • How do I set up Work in Progress Folder on site

    How do I set up Work in Progress Folder on a site in
    dreamweaver? I would like to be able to put jpegs, gifs, and html
    files up in a folder that only my client can access before posting
    to the "live" site. I was hoping it would be possible to allow him
    to access several html files from a single folder (sort of like a
    site map or contents of the folder).
    Thank you.

    quote:
    Originally posted by:
    Newsgroup User
    (_seb_) wrote:
    > KathyGS wrote:
    >
    >> How do I set up Work in Progress Folder on a site in
    dreamweaver? I
    >> would like to be able to put jpegs, gifs, and html
    files up in a
    >> folder that only my client can access before posting
    to the "live"
    >> site. I was hoping it would be possible to allow him
    to access
    >> several html files from a single folder (sort of
    like a site map or
    >> contents of the folder). Thank you.
    >>
    >
    > check this out:
    >
    http://www.webtrans1.com/downloads.php
    > click on "Directory Browser" DEMO.
    > It's a file browser, just like you brows your files on
    your computer (it
    > looks like the Mac Finder).
    > You can browse through the directory and open each file.
    >
    > If your host supports PHP, you can make this your own.
    >
    oh an it can be password protected too.
    seb ( [email protected])
    http://webtrans1.com | high-end web
    design
    Downloads: Slide Show, Directory Browser, Mailing List
    Thanks for this, I wanted something similiar.

  • How do you set the in point of a clip?

    I'm using the timeline template that has a number of clips flying by and I need to adjust the in point of the clips. To be clear, I'm NOT trying to adjust the point that the clip appears in the timeline but instead the portion of the clip that will be displayed as it fly's by within the Motion timeline.

    All that that seems to do is set the in point of the clip on the Motion timeline. Again, what I am attempting to do is change what is seen on the particular clip that has been dropped into this template. Where the inset clip window appears on the timeline is fine but I want is a later portion of the video within that clip to be shown as it is flying by. As it is now the clip is just beginning to show the footage I want as it is flying out of view.

  • At end of video how do I set a specific point in menu to return to?

    When my video has finished playing it returns to the start of my motion menu but I want to be able to tell DVDSP4 to start at a specific marker created in my Motion 3 project. Is there a way to do this?
    Many thanks
    Mark

    Very easy to do - click on 'add script' in the tool bar, then click on the script in the outline view. Look in the script editor tab and click on 'NOP' -the first line in the script.
    Now look in the property inspector at the 'Jump' command, use the dropdowns in that to select the right menu, and check the box that is for the loop point. When done, your script line will look a lot like the one I wrote above.
    Now, set the end jump of the track to go to that script instead of to the menu.
    All quite simple to achieve, I hope!

  • How do I set an achor point in Illustrator cs 6 on PC? Does it depend on the tool I'm using?

    I'm trying to fill in some missing color in a small spot on a hat and I may need to set an achor point. I want to use the blob brush though it is to big. What tool what a use to segregate a specific setting of the hat?

    RC,
    That depends on the shape of the area to have the colour. You could use a circle, maybe.
    If there is nothing there, you could also create a path larger than the area, give it the desired colour, and dragging it behind the (rest of the) hat, which you can do in the Layers palette.
    But depending on the artwork, you may have better options.
    And depending on the version, you may be able to just use Live Paint to fill the gap.

  • How do I set the new tab to show recently viewed sites

    I used to be able to open a new tab and see all the recently viewed sites and bookmarks. How do I set this?

    The Google Toolbar also has such a feature.<br />
    If you have used that toolbar in the past then see:<br />
    * http://www.google.com/support/toolbar/bin/answer.py?answer=115561 Web-browsing tools : Google new tab page and most visited websites - Toolbar Help

  • How can I set up a second Contacts folder on my IPhone

    I have an Iphone and a Palm Pilot.  I want to stop carring the Palm, and have the contacts there put on the IPhone.
    I came upon Plaxo, which would allow me to sync from desktops and laptops to the net, as well as syncing with my IPhone.
    However, it appears that Plaxo will sync with the IPhone Contact folder, then wipe out the subset of numbers I keep there.  I want to keep the contacts separate - especially because of the ringer tone controls.
    Is there a way to create a second contact folder that I can sync with Plaxo, which will keep separate the current IPhone contacts in my existing Contacts folder?
    My existing contacts folder was created, in a way I which I knew, when I got the phone.  It is a 3G, using 4.2.1 (8C148)..

    If I can not set up a second Contacts folder, does anybody have an alternative way of having contact information that a person could see the information from an Outlook Format available for viewing?

  • How can i set up a new imap folder on my own domain

    I have my own personal domain on my own server and I am wondering if the only way to set up a new folder is via cPanel direct on my server - or can it be done through Mail?

    If I can not set up a second Contacts folder, does anybody have an alternative way of having contact information that a person could see the information from an Outlook Format available for viewing?

  • How do I set up a root directory for a web site

    So this is probably a naive newbie question.
    I have been creating websites driven by php/mysql on my mac for years using the previous the web preference pane to run Apache and since that went away using XAMPP to provide Apache/php/mysql functionality on localhost.
    I decided to download OSX server and try to use that.  Figured might as well go native MAC.
    I am baffled.
    The manual says to set up a web site in Server by working through the Websites Services interface. I did that and pointed the setup at the directory where I have all of my web site files.  I now have no idea how to access that page from my local machine.
    I have tried:
    http://localhost/myURL
    http://localhost/~username/Sites/[root file directory]  -- where the files are stored
    I also tried some typical localhost ip address
    None access my site.
    How do I access my site over my local netework?
    I feel like just dumping server.app and stting things up through the terminal.
    Thanks,
    --Kenoli

    How familiar are you with the bash command line and with Apache, and how much do you want to learn about Apache and related topics?  (If you're not already, then I'd encourage learning about this material, as this knowledge is very useful for maintaining and updating sites, and knowledge of correctly securing files and directories is critical to building and maintaining secure web sites — all of managing and running and updating a web server builds on these foundations.  There are various good books and web sites on Apache, and the Apache web site has various materials available, if you don't already have something.)
    The localhost host name and the 127.0.0.1 IPv4 address are both synonyms for the "me" host.  It's the name and the address that always gets you to the current host.
    With http://localhost/ or http://127.0.0.1 specification, what you enter at the URL address bar is relative to the root directory specified for the default web server, and will default to the index.html or index.php page or whatever the default web site is configured to use.  With OS X Server, this root directory is configured via Server.app.  To use Server.app, launch it, connect to the server, select Websites from the left navigation, and you (by default) will see a default site and a secure site.  Select the default site.  Select the edit button below the site to edit (and to view) the configuration. 
    With the details of the default site visible, you will see the path to the default web directory.  This path to the default web directory is where the files for the default web sever location reside. 
    The default path to the default web site is /Library/Server/Web/Data/Sites/Default
    If you place foo.html in that directory (or whatever the defailt web site is using), you can view it via your web browser and the URLs:
    http://127.0.0.1/foo.html
    http://localhost/foo.html
    To get to the default web site using the GUI, launch Finder and select Go To Folder, and enter that string into the box.  You will now get a GUI view of that folder.  (I'd strongly recommend using the command line here, and not the GUI.  To get to the directory from the command line and then list the files present, launch Terminal.app from Applications > Utilities folder and issue the following commands:
    cd /Library/Server/Web/Data/Sites/Default
    ls
    If you want to test something in the browser, you can use the file:///path-to-file-to-test mechanism.  Most web browsers will allow you to render local files directly using file and three slashes.
    You will need to ensure the executable files (scripts) are marked as executable to OS X, using a Terminal.app command such as the following:
    chmod o+x path-to-file
    Enabling ~/user per-user sites involves directly editing the configuration file, as Apple has disabled that by default. 
    There's an Apache tutorial with an overview of what's involved with enabling per-user directories here, and there's what's been listed in my earlier replies and links.  With OS X Server Mavericks, the default configuration file for Apache is located in the Library folder, and can be viewed with the following Terminal.app command:
    cat /library/server/web/config/apache2/httpd_server_app.conf
    This file is the OS X Server equivalent of the oft-cited httpd.conf file you'll see listed in various documentation.
    If you want to enable the per-user directories or tweak other Apache settings, then shut down Apache from Server.app or from the command line, and then edit the configuration file with nano or some other command-line editor using a command similar to this:
    sudo nano /library/server/web/config/apache2/httpd_server_app.conf
    you'll end up finding and uncommenting (removing the #) from the following two lines:
    #LoadModule apple_userdir_module ${SERVER_INSTALL_PATH_PREFIX}/usr/libexec/apache2/mod_userdir_apple.so
    #Include /private/etc/apache2/extra/httpd-userdir.conf
    If you have specific questions about this, then I and others here can answer those.  If you don't understand something, then asking a question about that can help you learn, and can help me understand what it is that I'm posting in my replies here that's confusing you.  There are also various resources available for learning Apache, and I'd encourage spending a little time with those if you've not already done so or feeling at all unsure about how that tool works; I end up re-re-reviewing the Apache docs fairly regularly.

  • How can I set layoutset programatically in a folder ?

    Hi Gurus,
       I have a requirement in which I need to assign, programatically, a layout set for some folder. Does anybody give me an idea about it ?
    Thanks a lot.
    Patricio.

    How To Use Automator To Batch Rename Images on Mac

  • How can you set up a password protected folder in OSX 10.8.2

    I'm trying to set up password protected folder on a new mac desktop. Version 10.8.2
    I have done this before in Mountain Lion and previous OS versions by creating a "Disk Image" in the disk utitlity. It's been easy. But in this newer version, it doesn't give me the same options that I've seen in the past nor see on many online posts. And when I try to create, it just gives me an error message saying there is not enough space, which is crazy as there is over 500GB open.
    Any ideas?
    Thanks

    It still works in Disk Utility (DU):
    1. Determine one file that shall be inside the DMG, e.g. one on the Desktop (obviously, you can delete it later again). say it's xyz.jpg.
    2. In DU, without a drive selected, click New Image.
    3. Expand to Finder-like view by clicking on the arrow next to Save As.
    4. Click on xyz.jpg, even if greyed out. It will show up under Save As with the .dmg suffix.
    5. In the bottom part, select Name, Size, and all other parameters. You want encryption, so pick one, then click Create.
    6. Next, enter and remember your password. Probably you will NOT want it to be remembered in Keychain...
    7. That's it: at the same location as xyz.jpg you now have xyz.dmg. In the Finder it's open, and you can manage its content until you eject it.

  • How can I set up an App Tabs for an active site like one of the BBC's radio stations? They turn out to be static and soon out of date.

    I have been using an App Tab for static pages within Ancestry. No problem.
    But I would like to make an App Tab for one of the radio stations for the BBC network in the UK. (I live in the UK.)
    Every time I do so the tab sticks at the time I installed it. No good for listening to current programs 2-3 days later.
    Has the introduction of active tabs just arrived with Firefox 5 (which I only installed five minutes ago)?

    I agree anti-relay can be using UBE feature. However, there is serious problem in reject the spam mail. My nms is using UBE feature to stop spam mail. According to the work flow of the UBE, the mail is received by nms completely and UBE is going to invesgate the mail address. Although UBE can stop the spam mail, the spam mail have a trouble in returning the mail to the sender. The reason is the sender address is usually not existed in the world. That will cause a lot of mail waiting in the mail queue.
    In my experience, do not use UBE for anti-relay.

  • How can I set the file name and folder for output to PDF from another application?

    I am developing an application in Microsoft Access where the printed reports are to be saved in PDF format for archive purposes. I can send the output to Adobe X, but the default file name is the Access report name and the folder selected is the one last used.
    What I need to do is to create the file with a specific name (which changes for each run) and to a specific folder (which also changes for each run).
    The language I'm using is Visual Basic for Applications which is located in an Access form that controls the report production.
    Any suggestions, please?

    Got it - many thanks.

  • How do I set up a virtual host in my BC Site?

    Hi,
    I have my domain on one Server and want to link it with my Site in BC using a virtual host/domain. Is that possible in BC?
    Thanks for your support!
    JD

    Lemonte,
    You need to add it to an orion-web.xml file. This is Orion/OC4J's web app deployment descriptor.
    If you want to setup virtual directories for the default web app, you'd use /application-deployments/default/defaultWebApp/orion-web.xml. Otherwise use the orion-web.xml for your deployed web app.
    Cheers,
    Mike
    Atlassian - Supporting YOUR 'Orion/OC4J' World
    http://www.atlassian.com - [EMAIL][email protected][EMAIL]
    null

  • How is the best way to make a mirror of your site for a Spanish version that links to the English and Visa versa

    I will need to have my site be multilingual and was wondering what the best approach to this is. The sites will be identical with the text changing from one language to another.

    Hi David,
    You can copy the pages and all its content will be copied over. You can then change the text to the desired language. For linking pages to other language pages, you need to add hyperlink on the pages to the desired language pages.
    Regards,
    Aish

Maybe you are looking for

  • Hi, I am getting ora-600 during xml db installtion.

      2   stmt_basiclob   varchar2(3000);   3   stmt_seclob     varchar2(3000);   4  begin   5    stmt_basiclob := ' create table XDB.XDB$RESOURCE of sys.xmltype ' ||   6                     ' xmlschema "http://xmlns.oracle.com/xdb/XDBResource.xsd" ' ||

  • Can I shoot tethered with my D3x to Lightroom 3.6 on my Macbook Pro OS 10.7?

    I'm getting conflicting information on whether or not I can shoot my D3x camera tethered to my laptop with the new Lion operating system directly into Lightroom.  Any suggestions?

  • Is there an example of populating a tabular form by selecting node in tree

    Hi, I am using apex 4.1. I have created a tree region, and would like to click on a child node and have it populate a tabular form. My tree attribute has the following query: select case when connect_by_isleaf = 1 then 0 when level = 1 then 1 else -1

  • Sort order question

    Hello, all. I have a client who would like to have the ability to change the order in which sub navigation items appear on their site. I've got it to the point where if the SO is changed in the database, that change is reflected on the site. But curr

  • Dedicated vs Shared Question

    I am trying to understand if my DB is running dedicated or shared. I have read several posts here but some of the information is contradicting each other on my server. This is my analysis so far and it leads me to believe that I am running in dedicat