EJ. videos.mysite.com instead of mysite.com/videos
Is it a code in the httacces?
Thanks.
EJ. videos.mysite.com instead of mysite.com/videos
Is it a code in the httacces?
Thanks.
http://stackoverflow.com/questions/12415896/redirecting-subdirectory-to-subdomain-with-htaccess
In the Control Panel, as we know, we can create the subdomains....
I use to, when I create a subdomain, send its file to certain folder, ej. "sub".
In this folder are all the files of the subdomains I have created.
In order to happend that the Subdomain remains freez in the URL
Do I have to let the path Blank of the files of the subdomain when I create it?
Or is it another special Folder? Like "Pages" or "Users"?
Thanks again.
Yes I have tried.
This is my htacces how it look like:
Options +FollowSymLinksRewriteEngine On
AddEncoding gzip .gzAddEncoding gzip .gzip<FilesMatch "\.(js.gz|js.gzip)$"> ForceType text/javascript</FilesMatch><FilesMatch "\.(css.gz|css.gzip)$"> ForceType text/css</FilesMatch>
RewriteCond %{REQUEST_URI} !^/index\.phpRewriteCond %{REQUEST_URI} !/ow_updates/index\.phpRewriteCond %{REQUEST_URI} !/ow_updates/
RewriteCond %{REQUEST_URI} !/img/
RewriteCond %{REQUEST_URI} !/ow_cron/run\.phpRewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.xml|\.feed|robots\.txt|\.raw|/[^.]*)$ [NC]RewriteRule (.*) index.php
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www\.)?mejico\.mx$RewriteRule ^blogs/(.*)$ http://blogs.mejico.mx/$1 [L,QSA,R=301]
RewriteCond %{HTTP_HOST} ^blogs\.mejico\.mx$RewriteCond %{REQUEST_URI} !^blogs/RewriteRule ^(.*)$ /blogs/$1 [L,QSA]
RewriteEngine onRewriteCond %{HTTP_HOST} ^videos\.mejico\.mx$ [OR]RewriteCond %{HTTP_HOST} ^www\.videos\.mejico\.mx$#redirect directory to subdomainRewriteCond %{HTTP_HOST} !^videos\.mejico\.mxRewriteRule ^/?$ http://videos.mejico.mx/$1 [L,R=301]
RewriteEngine onRewriteCond %{HTTP_HOST} ^dashboard\.mejico\.mx$ [OR]RewriteCond %{HTTP_HOST} ^www\.dashboard\.mejico\.mx$#redirect directory to subdomainRewriteCond %{HTTP_HOST} !^dashboard\.mejico\.mxRewriteRule ^/?$ http://dashboard.mejico.mx/$1 [L,R=301]
can u help me pleas?...