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

.htaccess subdomains | Forum

Topic location: Forum home » Support » General Questions
Ayman
Ayman Apr 22 '16
Hi 

can anyone please help me edit my .htaccess file so i can be able to open and have subdomains on my domain .


Options +FollowSymLinks

RewriteEngine On


AddEncoding gzip .gz

AddEncoding gzip .gzip

<FilesMatch "\.(js.gz|js.gzip)$">

  ForceType text/javascript

</FilesMatch>

<FilesMatch "\.(css.gz|css.gzip)$">

  ForceType text/css

</FilesMatch>



RewriteCond %{REQUEST_URI} !^/index\.php

RewriteCond %{REQUEST_URI} !/ow_updates/index\.php

RewriteCond %{REQUEST_URI} !/ow_updates/

RewriteCond %{REQUEST_URI} !/ow_cron/run\.php

RewriteCond %{REQUEST_URI} !/e500\.php

RewriteCond %{REQUEST_URI} !/captcha\.php

#RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.xml|\.feed|robots\.txt|\.raw|/[^.]*)$  [NC]

RewriteCond %{REQUEST_FILENAME} (/|\.php|\.html|\.htm|\.xml|\.feed|robots\.txt|\.raw|/[^.]*)$  [NC]

RewriteRule (.*) index.php


The Forum post is edited by Ayman Apr 22 '16
Attachments:
  .htaccess.rar (0Kb)
dave Leader
dave Apr 22 '16
See here please  http://www.oxwall.org/forum/topic/47116


dave ;)

Ayman
Ayman Apr 22 '16
ok thank you dave 
ross Team
ross Apr 24 '16
Dave +1
Pascal
Pascal Feb 15 '17
Thanks Dave! Thats exactly what I wanted to know! :)