Subdominios sin index

como puedo hacer para que las demás revistas puedan quedar con subdominios y aparte no se les vea el index así como sale en este ojs ???

probé con este metodo →

pero no resulto. y mi propósito es que quede casi igual que el ojs antes mencionado.

Can you describe exactly what you have tried, and described what is currently happening?

I have used

restful_urls = On

base_url [index] =

base_url [name2] =


<IfModule mod_rewrite.c>

RewriteEngine On
RewriteBase /

RewriteCond% {HTTP_HOST} ^ name.domain.cll / $
RewriteRule ^ $ [L, R = 301]

RewriteCond% {REQUEST_FILENAME}! -d
RewriteCond% {REQUEST_FILENAME}! -f
RewriteCond% {REQUEST_URI}! ^. * / Index.php /.*$
RewriteRule ^ (. *) $ /index.php/$1 [QSA, L]
</ IfModule>

but it does not help much unless in base_url [name2] put base_url [name2] = but I want the eyes to be exactly as it appears on the previously published page, apart from the fact that the magazine principal is deformed.


You can use three backticks to surround code so that it is formatted in the forum:

	<code here />

In your case, you want each redirect to be conditional on the domain name, and to redirect specifically to a journal.

For example (untested):

   RewriteCond% {HTTP_HOST} ^$
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteCond %{REQUEST_URI} !^.*/index.php/.*$
   RewriteRule ^/(.*)$ /index.php/nombre2 [QSA,L]

In this case, maps to /index.php/nombre2

You would need a statement like this for each subdomain/journal and for the domain/site level.

solve it with this code

  RewriteCond %{SERVER_NAME} ^([a-z0-9-]+)\.ucm\.cl$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/%1/$1 [L]