Sometimes you may have multiple domains which you want to use for your website or web application. Probably you needed to park the domains on your hosting cpanel. In this case, you website or web application could be access by more than one domain which is not good for SEO and other 3rd party services may not work.
A simple way to redirect all URLs to a specific URLs is by .htaccess.
Suppose you have the following sub domains and all of them serve your website or web application.
Continue reading .htaccess – Redirect all URLs to a specific sub domain
After almost 2 years, the BeansTag module finally get through the review process and it is not officially released! If you want to find a simple tool to add page title and meta tags on your Drupal 7 website, BeansTag may be a good option for you.
BeansTag is a page title, meta tag and meta description management tool. You could add the above attributes to any path alias and they would be shown in the webpage. It fully support any pages including views, panel pages as well as nodes.
BeansTag also support multiple language since the language prefix in the path alias is also included when rendering the BeansTag.
Continue reading BeansTag – Official release
Recently i start working on BeansTag again as some users request to add the meta robots and canonical options.
This time, the update involves a change in the module schema. In this case, we need to implement the hook_update_N() in .install.
The following piece of code is added to beanstag.install. Continue reading Drupal 7 – Update the module schema by hook_update_N()
Originally, BeansTag will check if there is any existing meta tags in the page which is going to be rendered. If exists, the BeansTag module will do nothing.
As requested by a BeansTag user, recently i have added a BeansTag settings page where you disable this checking.
If this option is checked. BeansTag will override the existing meta data.
Reference: BeansTag – Override other metatag modules, possible?
If you have no idea about BeansTag, please refer to BeansTag – The SEO tool for Drupal 7
Although BeansTag is not going to be approved as a Drupal 7 module, i still added some features to it as requested by the BeansTag users. But before i talk about the new features, i want to clarify a BeansTag concept
BeansTag depends directly on the url path.
For example, a node with nid = 1 has an url alias articles/abc, you can create 2 different BeansTags with the following paths.
Continue reading BeansTag update
Next: BeansTag update
BeansTag is a page title, meta tag and meta description management tool. It makes use of the path alias as an identifier for the SEO attributes. You could add them to any path alias and they would be shown in the webpage. It fully supports any pages including views, panel pages as well as nodes. Continue reading BeansTag – The SEO tool for Drupal 7
If you don’t want your site to be indexed by search engine like Google, create a file called robots.txt with the following 2 lines and put it in your webroot directory.
Open http://<your_domain>/robots.txt in browser to check if the above file is shown.
Reference: Webmaster Tools Help – Removing your entire website using a robots.txt file