You see, I have a domain called www.cssblog.es
, and a subdomain called comunidad.cssblog.es
.
The fact is that when you enter comunidad.cssblog.es
, you redirect me to the main page. However, if I wrote cssblog.es/comunidad/
(the address pointed to by the subdomain), if I accessed, but of course I want to access from the subdomain.
I tried to put this in the htaccess:
# Si se accede desde
RewriteCond %{HTTP_HOST} comunidad.cssblog.es
# Y la carpeta solicitada no es "comunidad"
RewriteCond %{REQUEST_URI} !comunidad/
# accedemos directamente a la carpeta mi/la_url_indicada
RewriteRule ^(.*)$ comunidad/$1 [L]
And now when writing the subdomain it does not redirect but the blank screen comes out and you can read page not found.
However, if we access by comunidad.cssblog.es/index.php
it connects to the page (it is a forum in vbulletin) and from there no more errors come out.
The failure is that since comunidad.cssblog.es
does not enter because it leaves page not found, and you have to add the index.php
How can I solve it completely?