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 magic | Forum

Anon Anon
Anon Anon Apr 2 '12
So what the magic contents of a htaccess file to over ride the problem of not being able to access other directories with other applications? Remembering that Oxwall is a standard installation. Paths are set to same standards where ever the instalation.

What should be added to the.

Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_URI} .*/http-bind
RewriteRule (.*) /http-bind [L]
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} !/ow_updates/index.php
RewriteCond %{REQUEST_URI} !/ow_updates/
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.raw|/[^.]*)$  [NC]
Before the
RewriteRule (.*) index.php

To run for example:

BlackNova Traders   

Director after install
/bnt/

Say for a site call http://scoopydo.com ;

Please supply the magic?  it would be very appreciated. 

Please can I have the answer from the experts before I start experimenting and publish my results here as i know there are a lot of developers that would like to run other applications from the same site. Then recommending a slow server that sets this up for you with a history of a lot of down time is not the whole idea of asking this question. Nor going through 100 + suggestions that ends up with a last pleading comment. lol 

The Forum post is edited by Anon Anon Apr 2 '12
Mark
Mark Apr 3 '12
heres what i think you are after


in your .htaccess file after 


RewriteRule (.*) /http-bind [L]


add the following line to allow a subdomain (like bnt.scoopydo.com)
RewriteCond %{HTTP_HOST} !bnt.scoopydo.com$


add the following line to allow a directory (like scoopydo.com/bnt/)
RewriteCond %{REQUEST_URI} !/bnt/


add the following to allow a custom file (like scoopydo.com/bnt.txt)
RewriteCond %{REQUEST_URI} !/bnt.txt

The Forum post is edited by Mark Apr 3 '12
Anon Anon
Anon Anon Apr 3 '12
Thanks Mark.

Please..... 


Quote from Mark in your .htaccess file after RewriteRule (.*) /http-bind [L]

Do you mean after the  RewriteRule (.*) index.php?

And
Quote from Mark add the following line to allow a subdomain (like bnt.scoopydo.com) RewriteCond %{HTTP_HOST} !bnt.scoopydo.com$ add the following line to allow a directory (like scoopydo.com/bnt/) RewriteCond %{REQUEST_URI} !/bnt/ add the following to allow a custom file (like scoopydo.com/bnt.txt) RewriteCond %{REQUEST_URI} !/bnt.txt

before the RewriteRule (.*) index.php?






The Forum post is edited by Anon Anon Apr 3 '12
Mark
Mark Apr 3 '12
this is how my file looks



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} .*/http-bind
RewriteRule (.*) /http-bind [L]

RewriteCond %{HTTP_HOST} !f.domain.com$


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








Anon Anon
Anon Anon Apr 5 '12
Thanks Mark
Jho
Jho Apr 9 '12
thanks my problem was solved by this :)
Mohammad
Mohammad Jul 5 '12
thanks.....
Richard Jay
Richard Jay Oct 5 '12
this doesn't work for me. I installed my website from AMPPS localhost and uploaded it to a subdomain. I'm still stack. :((
Alia Team
Alia Oct 8 '12
Richard, we need more information on your "stack" issue? Do you get just a blank page or some kind of errors? Your site URL would help a lot as well.
Dolf
Dolf Feb 21 '13
This worked for me... Thank you!
suresh kumar
suresh kumar Feb 21 '13
Thank you mark solved my issue as well
Armin
Armin Nov 9 '13
Doesn't worked for me. Should I made this change before installing Oxwall?!
Karalius Kraujas
Karalius Kraujas May 28 '14
worked for me, big thanks!
Kostas
Kostas Jan 20 '15
Doesn't work for me.

Say if my folder is "cloud"inside the oxwall folder

and the subdomain is cloud.mydomain.eu

how the .htaccess should look like?

br,

Kostas

Brandon
Brandon Jan 31 '15
Perfect fixed my problem thank you!
Sean
Sean Feb 9 '15
I always just put a .htaccess with the following contents on each directory that I don't want rewrite engine...


ReWriteEngine Off

Maksim
Maksim Mar 17 '15

Quote from Mark this is how my file looks



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} .*/http-bind
RewriteRule (.*) /http-bind [L]

RewriteCond %{HTTP_HOST} !f.domain.com$


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










Quote from Mark this is how my file looks



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} .*/http-bind
RewriteRule (.*) /http-bind [L]

RewriteCond %{HTTP_HOST} !f.domain.com$


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










Quote from Mark this is how my file looks



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} .*/http-bind
RewriteRule (.*) /http-bind [L]

RewriteCond %{HTTP_HOST} !f.domain.com$


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










Quote from Mark this is how my file looks



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} .*/http-bind
RewriteRule (.*) /http-bind [L]

RewriteCond %{HTTP_HOST} !f.domain.com$


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










Quote from Jho thanks my problem was solved by this :)
This download not enabled browser cache! https://developers.google.com/speed/pagespeed/insights/?url=http%3A%2F%2Fznakomstv.website%2F&tab=desktop
ross Team
ross Mar 17 '15
Maksim, what is your request and what does it have to do with this topic? Please elaborate
The Forum post is edited by ross Mar 17 '15
Maksim
Maksim Mar 18 '15
Hello!Simply Mark is not enabled caching and compression!He puts his file .htaccess but it is not correct and there will be problems with the speed of the site! 
ross Team
ross Mar 18 '15
What he put in htaccess that affects the speed of the site?
Pages: 1 2 »