Reputation: 83
my home directory is this /public_html/
my subdomain directory is /public_html/es/
what I need is my subdomain to point to the main directory. using htacces I am using ../ but does not work :(
I imagine that this can do, and if it is not possible please tell me
# Activar RewriteEngine
RewriteEngine on
RewriteCond %{HTTP_HOST} ^es\.example\.me$
RewriteCond %{REQUEST_URI} !^../index.php
RewriteRule (.*) ../index.php$1 [L]
Upvotes: 1
Views: 24
Reputation: 10889
If I understood you correctly, this is all that is needed:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^es\.example\.me$
RewriteRule es/(.*)$ /$1 [L]
Upvotes: 1