Follow this guide to make your translated website SEO-friendly.
Log-in to your server FTP
Locate the apache .htaccess configuration file in your server in your web server root folder. This is usual /var/www/ or /public_html folder.
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>
<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, cache_disk
โIf they are not installed you have SSH access you can install them with:
a2enmod headers
a2enmod rewrite
a2enmod proxy_http
a2enmod cache
a2enmod cache_disk
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
โ