I've created a page at
/forum
So if I open:
www.mydoman.com/forum
Then i can see my forum. But note, there is no FOLDER "forum". When you open "/forum" a paramteer is passed to Drupal saying that you are now accessing the forum. These rules are set up by the .htacess file.
So my question is, how can I create:
forum.mydomain.com
to show the contents located at www.mydomain.com/forum ?
The answer to your question comes in two parts:
a) you must first set up your cPanel to permit serving pages for forum.mydomain.com from the same set of files as www.mydoman.com
This involves using a "Parked Domain" on that cPanel account (i hope your cPanel account has privs for this). You may or may not need to place a symbolic link on the server, so that the parked domain is equivalent to the original domain.
http://docs.cpanel.net/twiki/bin/view/AllDocumentation/CpanelDocs/AddonDomains
http://support.hostgator.com/articles/cpanel/what-is-the-difference-between-parked-addon-and-subdomains
b) next up you need to change your Drupal deployment to a multisite set up (i.e. create a subdirectory in sites/ with the name forum.mydomain.com and in there use a settings.php file that is identical to any you might have in default. Having done this, you should be able to set the homepage value for that site to be /forum via the variable that controls the frontpage
$conf['site_frontpage'] = "/forum";
http://drupaleasy.com/quicktips/module-development-settings-variables-settingsphp-using-conf
This module will help you take a look.
Automatically creates subdomains and places content on them. There are 4 modes:
User: e.g. "Mary" and content atmary.example.com
Taxonomy: e.g. "Seattle" and content ateattle.example.com
Organic Group: e.g. "MyGroup" and content at mygroup.example.com
Content type subdomains: e.g. "News" content at news.example.com
Related
It's hard to explain, I would like to do something like below but I don't know how.
I currently own two different domain names and have one website.
Can I have two domains pointing to the same website but the URL only shows whatever domain is entered in the first place?
For example, when I type in 'domain123.com', it takes me to my website (IP address 111.222.333) with the URL shown as 'domain123.com'. Then when I type in 'domainABC.com', it also takes me to the same website (IP address 111.222.333), but the URL needs to show 'domainABC.com' instead of 'domain123.com'.
I guess I will need to redirect one of the two domains to the website, but how can I stop the URL changes the domain name?
I am not sure if I can just modify .htaccess to achieve above or if I also need to change the DNS, etc. to make this work.
Please help and many thanks
It depends on your setup and your server permissions.
A nice way will be to change the docroot in the apache or nginx config.
If you don't have permissions to edit these configs, you can create a symbolic links so that the public folder of domain2 points to the public folder of domain1
In my Magento I've created two store so we have now these stores:-
commercial and url :- www.mysite.com/commercial
default and url www.mysite.com/deault
retail. and url www.mysite.com/deault/retail
My commercial url looking good but I want to remove default from these stores :-
deault and url www.mysite.com/deault
and
retail. and url www.mysite.com/deault/retail
If I disable :"Add Store Codes" to Url = no then commercial stores stops working.
Here's an explanation for how to do it:
http://www.crucialwebhost.com/kb/how-to-setup-multiple-magento-stores/#subdirectory-method
Basically you need to manually create the subdirectories and put modified copies of the files index.php and .htaccess inside.
But this assumes that you run the 'default' shop directly on the domain top level directory. Another Stackoverflow post that could give insight into the settings:
Multiple magento stores on single domain
I've got a question about more domains in TYPO3.
I'd like to build a tree which has 2 domains.
If I load the first url, I would like to load the first site,
If I load the second url, I would like to load the second site.
The domains are stored in each site.
Is it possible to do this without using the .htaccess file ?
Does somebody has a tutorial or help for me ?
Thanks
Look at http://wiki.typo3.org/Multidomain
No, you don't need special .htaccess directives.
1) Create page and make it as a root page.
2) Add domain for your root page.
3) Edit domain and give path of your site to domain.
And there is no need to do anything in .htaccess
It's very easy to handle multiple domains using typo3.
3 steps:
Add the site address to DNS.
In typo3 backend, create a "domain record" at the root page of the site "aaa" as aaa.com and another domain record at the root page of the site "bbb" as bbb.com.
Update the domain root page templates with the below typoscript:
config.baseURL = aaa.com # in the first domain's root ts template
config.baseURL = bbb.com # in the second domain's root ts template
Note: You can also add one more domain record in each domain's root page for redirecting to
www.aaa.com and www.bbb.com using the domain record options.
Just point another vhost/alias to this directory. Domain records handles it all.
Don't forget to check realurl config - sometimes there's need to configure it's settings in different way to every domain.
Important - if you share records between domains (eg. tt_news) you have to make identical config for it's postVarSets for each domain. If not, realurl will generate links as ugly hashes.
I'm having trouble with the setup of the MU domain mapping plugin, I'm just getting the default server cgi page when I goto the mapped domain. These are the steps I've gone through:
Installed the plugin and moved the sunrise.php into wp-content and and added the line in the wp-config.php file.
(All my domains are hosted by LCN) Added the "*" and the IP of my hosting to the main domain.
Added the IP for my mapped domain.
Added the new site in the super admin (although I can't find any files relating to this) - http://www.teamworksdesign.com/test/
Added my IP in the domain mapping configuration.
Added the mapped domain into the dashboard so it now shows where the root files are (even though there's no folder called that in my ftp) and the site it maps to.
When I load up the mapped site it just loads the default server cgi page at www.shareandbefair.com and a LCN parking page shareandbefair.com.
Where am I going wrong? Can anyone help?
Not sure about your steps. sunrise.php should be placed in the /wp-content/ folder, not in wp-config.
You might want to walk through the step is this tutorial for the MU domain mapping plugin. The only thing that's changed between the tutorial and the current version is that you no longer move the domain_mapping.php file anywhere ... you just "network activate" the plugin instead.
If that still doesn't help, try this:
Make sure the domain to be mapped points to your existing WordPress installation. If it doesn't point at WordPress, WordPress can't map it.
Make sure the domain is registered for the site you want to map it to using the MU domain mapping plugin (looks like you've already got this).
Make sure the domain is set as the primary domain for the site you want to map it to.
If that doesn't work, try poking the WordPress support forums, dropping in #wordpress on IRC, or try Professional Domain Mapping instead ...
Turns out it was just a case of parking the mapped domain onto the main domain (where the network is).
Is there a solution to the following that I am missing in SharePoint/CAML. Note that I'll give a specific example of using a URL on a Redirect Page (publishing feature content type), but the issue is broader in scope than provisioning a Redirect Page. It is really a question anywhere a "URL" field/property can be set (web parts, pages, etc).
Like most SharePoint developers, I have a set of environments: "DEV", "QA", "STAGING", and "PROD". I have a few "locale" specific sites in each environment:
www.mysite.com
us.mysite.com
uk.mysite.com
etc...
Sites in each environment, other than PROD, have an environment prefix associated with them, for example:
us.dev.mysite.com
us.qa.mysite.com
us.staging.mysite.com
Probably a pretty common setup...
I have a need to redirect users to a page that only exists on the "www" site from each of the locale specific sites. I need the redirect to redirect users to appropriate "www" site for the environment they are currently in. For example, if I am in dev in the uk locale, and I visit the redirect page, I should be redirected to the www dev site.
I was hoping to use a "Redirect Page" from SharePoint to accomplish this. I was going to setup a feature (with module elements) to provision an instance of the "Redirect Page" content type. This allows me to specify a url to redirect users to. If I am provisioning the page through CAML, however, I need a way to ensure the redirect is appropriate for the environment being specified. I cannot trust myself, or other devs, to remember to change the URL each time we build and deploy the wsp to each environment.
Is there anyway in SharePoint/CAML to do some sort of token replacement based on some switch when specifying field/property values?
I'm not sure I understand you requirements entirely, but for the variance of environments (Dev, QA, Staging, Prod), I would use Chris O'Brien's 'Config Store' feature:
http://www.sharepointnutsandbolts.com/2008/05/introducing-sharepoint-config-store-for.html
This will create a simple list where you can store infomation specific to the current environement.
This combined with Gary Lapointe's stsadm extentions:
http://stsadm.blogspot.com/2007/08/stsadm-commands_09.html
You can use this to push out the correct values per environment to your 'Config Store' and in your code, query the 'config store list' for the environment value.
For sites that represent different countries, you can vary them on the regional settings property for that site/site collection/web. This adds another dimension to check in your code.
In your case, you may have entry in the config store called 'MyPrefixUrl' and call its value + relative path to redirect the user to the correct place.
Hope this doesn't confuse you.