Drupal: Quick Cron Diagnostic
January 23, 2012 – 8:25 am | No Comment

In this article I would tell you how  to find our the reasons of why cron hangs up and fix them. Read the solution options below.

Indexing
Reduce the number of documents for indexing at a single …

Read the full story »
CSS Templates

Contain reviews and news about CSS Templates.

Freebies

Contain freebies such as icons, graphics, headers and images for your websites.

Fun Stuff

Contains other fun stuff for entertainment or interesting site showcase.

How-To

Contain technical elaborations on some specific workarounds or common tweak.

Joomla Templates

Contains reviews and news about Joomla templates.

Home » How-To

Drupal: How to Redirect Moving Site From Subfolder to Server Root

Submitted by Aleksey on May 7, 2010 – 9:20 amNo Comment

When web site is under construction, it is often stored within subfolder of the existing site so search engines are able to index it. And after the site moves to server root all indexed links become broken. This is not good. In addition, there can be some references to these links…

Solution:


Open .htaccess (the file is located on site root) and add:

RewriteCond %{REQUEST_URI} ^/subfolder
RewriteRule ^subfolder(.*)$ http://site.ru$1 [R=301,L]

Right after

<IfModule mod_rewrite.c>
  RewriteEngine on
 

This is how such redirecting works:

Advantages:

  • There is no waste of links weight (search engines pass weight to a new page)
  • Old links still work

Leave a comment!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.