Follow this guide to make your translated website SEO-friendly.

  1. Log-in to your server FTP
  2. Locate the apache .htaccess configuration file in your server in your web server root folder. This is usual /var/www/ or /public_html folder.
  3. Modify the Apache configuration file Virtual Host to include Bablic's code:
<IfModule mod_headers.c>
<IfModule mod_rewrite.c>
<IfModule mod_proxy.c>
# Replace [SITE ID] with your Bablic ID
Header set x-bablic-id "[SITE ID]"
RewriteEngine on
<If "%{HTTP_USER_AGENT} =~ /bot|crawler|baiduspider|80legs|google|facebook|twitter|seo/i">
<IfModule mod_cache.c>
LoadModule cache_disk_module /usr/lib/apache2/modules/mod_cache_disk.so
<IfModule mod_disk_cache.c>
CacheDefaultExpire 345600
CacheEnable disk /
CacheRoot "/tmp/"
CacheDirLevels 2
CacheDirLength 1
</IfModule>
</IfModule>
RewriteRule .* - [E=INFO_HTTP_HOST:%{HTTP_HOST},NE]
RewriteRule .* - [E=INFO_SERVER_PORT:%{SERVER_PORT},NE]
RewriteCond %{HTTPS} on
RewriteRule .* - [E=INFO_PROTOCOL:https,NE]
RewriteCond %{HTTPS} off
RewriteRule .* - [E=INFO_PROTOCOL:http,NE]

RewriteRule .* - [E=QS:%{QUERY_STRING},NE]
RewriteRule .* - [E=INFO_REQUEST_URI:%{REQUEST_URI},NE]
RequestHeader set x-original-uri "%{INFO_PROTOCOL}e://%{INFO_HTTP_HOST}e%{INFO_REQUEST_URI}e?%{QS}e"
# Replace [SITE ID] with your Bablic ID
RequestHeader set X-Bablic-ID "[SITE ID]"

RewriteRule .* http://seo.bablic.com/api/engine/seo [P]
</If>
# Uncomment this code if you wish to use subfolders. In this example the subfolders are 'de' for German or 'es' for Spanish.
# This can be changed according to each website languages
#RewriteRule ^(de|es)\b(.*)$ $2 [PT,QSA]
</IfModule>
</IfModule>
</IfModule>


Replace [SITE ID] with your Bablic Site ID.


This integration will not work without the follow Apache modules headers, rewrite, cache, dist_cache
If they are not installed you have SSH access you can install them with:

a2enmod headers
a2enmod rewrite
a2enmod proxy_http
a2enmod cache
a2enmod disk_cache
apache2 -k graceful
/etc/init.d/apache2 reload

That's it. Click the "Verify" button in your Bablic SEO Configuration Wizard to validate the installation. If you wish to use Sub-Directories, uncomment the line in the configuration file that rewrites the sub-directories, and follow the SEO Configuration Wizard

Did this answer your question?