Tag Archives: SEO

.htaccess – Redirect all URLs to a specific sub domain

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

BeansTag – Official release

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

Drupal 7 – Update the module schema by hook_update_N()

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()

BeansTag – Override existing meta tag if it already exists

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.

Done =)

Reference: BeansTag – Override other metatag modules, possible?

BeansTag update

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.

  • node/1
  • articles/abc

Continue reading BeansTag update

BeansTag – The SEO tool for Drupal 7

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

SEO – Remove your site from search engine index like Google

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.

User-agent: *
Disallow: /

 

Open http://<your_domain>/robots.txt in browser to check if the above file is shown.

Done =)

Reference: Webmaster Tools Help – Removing your entire website using a robots.txt file