Tengo una instalación (joomla 1.7 con Motor de búsqueda para URLs amigables ) funcionando y correcta en un directorio, y he tenido que redireccionar en el .htaccess para que una vez escriban midominio.com vaya al directorio donde esta la web.
Me pasa lo mismo tenga urls amigables o no
Pues bien, mi .htaccess es el que sigue:
Código PHP:
# Bluehost.com
# .htaccess main domain to subdirectory redirect
# Copy and paste the following code into the .htaccess file
# in the public_html folder of your hosting account
# make the changes to the file according to the instructions.
# Do not change this line.
RewriteEngine on
# Change yourdomain.com to be your main domain.
RewriteCond %{HTTP_HOST} ^(www.)?miweb.com$
# Change 'subdirectory' to be the directory you will use for your main domain.
RewriteCond %{REQUEST_URI} !^/midirectorio/
# Don't change this line.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Change 'subdirectory' to be the directory you will use for your main domain.
RewriteRule ^(.*)$ /midirectorio/$1
# Change yourdomain.com to be your main domain again.
# Change 'subdirectory' to be the directory you will use for your main domain
# followed by / then the main file for your site, index.php, index.html, etc.
RewriteCond %{HTTP_HOST} ^(www.)?miweb.com$
RewriteRule ^(/)?$ midirectorio/index.php [L]
http://miweb.com/midirectorio/index.php/historia
Cuando en realidad debería mostrarme:
http://miweb.com/historia
¿Me podéis ayudar?
Gracias de antemano