Two indexhibits (multi language), bad redirection

raulnavarro / 2012-12-09 22:12:51   

Hi, sorry for my english...

I'm creating my website and, as I wanted it to be multilingual, I've installed two indexhibits: one in my root directory, and the other in /en/ (same database with different prefix)
Everything was apparently well installed, but when I create an exhibit in my /en/ indexhibit and click on it, I am redirected to my root homepage. It happens with every exhibit I create in my english (/en/) side.

I haven't been able to find something similar in the forum, excuse me if it has been already asked.

Thanks and regards

raulnavarro / 2012-12-10 00:07:23   

You can see what I mean here: raulnavarro.com/en/

Any link you click, it goes back to spanish homepage (but strangely, URL is correct).

Thanks

Vaska A / 2012-12-10 01:05:27   

Sounds like your host has a wonky mod_rewrite setup.

raulnavarro / 2012-12-10 07:17:41   

My host is Godaddy. Should I talk to them, or there's no solution? Thanks a lot

Vaska A / 2012-12-10 10:58:15   

I think what you need is simple (I'm guessing). In the folder (not at the root) adjust your htaccess rule to this:

  1. RewriteEngine on 
  2. RewriteCond %{REQUEST_FILENAME} -f [OR]
  3. RewriteCond %{REQUEST_FILENAME} -d
  4. RewriteRule ^(.+) - [PT,L]
  5. RewriteRule ^(.+) /index.php

Simply add that forward slash to the last line (before index.php) and I think it will find the right index.php.

Some hosts do not allow mod_rewrite in folders - but I believe your host does.

raulnavarro / 2012-12-10 13:12:56   

Thanks for your help. Unfortunately, it didn't work. I changed .htaccess rule but it didn't change.

So I guess I'll have to contact Godaddy.

Thanks again, Vaska

Vaska A / 2012-12-10 13:54:23   

You could also try the path...like...

  1. /en/index.php
raulnavarro / 2012-12-10 14:53:07   

That worked! Thanks so much! :)

This thread has been closed, thank you.