Im trying to make a redirect listen to a certain domain. I have 3 domains; - www.tocdesal.com
www.tocdesal.es
www.tocdesal.nl
Now i want achieve this..
www.tocdesal.com > www.tocdesal.com/en_GB/
www.tocdesal.nl > www.tocdesal.com/nl_NL/
www.tocdesal.es > www.tocdesal.com/es_ES/
Here is some code i use to manage multilanguage and ban people form certain folders. I hope somebody can help me with this feature.
<IfModule mod_rewrite.c>
# Turn on URL rewriting
RewriteEngine On
# NON-WWW > WWW
#RewriteCond %{HTTP_HOST} ^www\.tocdesal\.nl [NC]
#RewriteRule (.*) http://www.tocdesal.nl/nl_NL/home/$1 [R=301,L]
# CUSTOM REWRITES
#Redirect 301 /[oldlink] [new-full-link]
# We dont want snooping people
Options -Indexes
#RewriteCond %{REQUEST_URI} ^framework.*
# If your website begins from a folder e.g localhost/my_project then
# you have to change it to: RewriteBase /my_project/
# If your site begins from the root e.g. example.local/ then
# let it as it is
#RewriteBase /tvmoordrecht
# Protect application and system files from being viewed when the index.php is missing
RewriteCond $1 ^(framework/modules|framework/coremodules|framework/cicore|application|assets|custommodules)
# Rewrite to index.php/access_denied/URL
RewriteRule ^(.*)$ index.php/access_denied/$1 [PT,L]
# Allow these directories and files to be displayed directly:
RewriteCond $1 ^(index\.php|robots\.txt|favicon\.ico|css|js|images|img|fonts|upload|framework/assets/|themes|framework/apps/elfinder|dev-cmslemonupdater|cmslemonupdater)
# No rewriting
RewriteRule ^(.*)$ - [PT,L]
# Rewrite to index.php/URL
RewriteRule ^(.*)$ index.php/$1 [PT,L]
</IfModule>