htaccess magic | Forum

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 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 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 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 Apr 5 '12
Thanks Mark
Jho Apr 9 '12
thanks my problem was solved by this :)
Mohammad Jul 5 '12
thanks.....
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. :((
Team
Aliia 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 Feb 21
This worked for me... Thank you!
suresh kumar Feb 21
Thank you mark solved my issue as well