We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

SubDomains | Forum

Topic location: Forum home » Support » General Questions
Ulises Aguilera
Ulises Aguilera Jun 4 '14
How can we freez the SubDomain in the URL?

EJ. videos.mysite.com instead of mysite.com/videos


Is it a code in the httacces?


Thanks.

The Forum post is edited by Ulises Aguilera Jun 4 '14
Ulises Aguilera
Ulises Aguilera Jun 6 '14
Thanks Ross...


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.



ross Team
ross Jun 6 '14
I'm sorry I don't understand. Have you tried the solutions provided in the articles?
Ulises Aguilera
Ulises Aguilera Jun 7 '14
Hi Ross...

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]







Ulises Aguilera
Ulises Aguilera Jun 19 '14
I´m sorry Rosse, but I couldn´t create any subdomain and let it freeze in the url...

can u help me pleas?...