Hello,

I have a working drupal site. Using the multi site capability of Drupal i have setup another site as a subdir like http://domain/subdir and it is also working.

The new site will host the translation of the main site content. In order to not go again through all the configuration steps and then copy and paste I just dumped the main site db and loaded it into the new site db.

The problem I'm having now in the new subdir site is that except from the home page, the links are not found in the db. How to change the links/alias in the db?

Main site: http://programming-crash-course.com
subdir site: http://programming-crash-course.com/pt_br

Regards

Comments

Kakao’s picture

I guess the problem is in the clean urls config in httpd.conf. This works for the main site:

  RewriteCond /var/www/html/pcc/%{REQUEST_FILENAME} !-f
  RewriteCond /var/www/html/pcc/%{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ /index.php?q=$1 [L,QSA]

So i tried to expand it to catch the /pt_br subdir but it did not work.

  RewriteCond /var/www/html/pcc/%{REQUEST_FILENAME} !-f
  RewriteCond /var/www/html/pcc/%{REQUEST_FILENAME} !-d
  RewriteCond /var/www/html/pcc/pt_br/%{REQUEST_FILENAME} !-f
  RewriteCond /var/www/html/pcc/pt_br/%{REQUEST_FILENAME} !-d
  RewriteRule ^(pt_br/)*(.*)$ /index.php?q=$2 [L,QSA]

Any rewrite expert?

Kakao’s picture

It is working now with these httpd.conf settings:

  RewriteCond /var/www/html/pcc/%{REQUEST_FILENAME} !-f
  RewriteCond /var/www/html/pcc/%{REQUEST_FILENAME} !-d
  RewriteRule ^/(pt_br/)*(.*)$ /$1index.php?q=$2 [L,QSA]