Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

htaccess socialengine (trying this again)

Status
Not open for further replies.

leekh

Programmer
Jul 14, 2011
1
US
First time is no longer here...
the following htaccess is stopping folders from being accessed in a socialengine installation... i have scripts needing installation in folders and they are not being loaded, instead result in socialengine's 'page not found'.. this is a socialengine 4. install

does anyone know a method to allow two specific folders to be accessed and allow the rest to remain essentially blocked?

thank you in advance for replies and help!

htaccess contains:

Options +FollowSymLinks

RewriteEngine On

# Get rid of index.php

RewriteCond %{REQUEST_URI} /index\.php

RewriteRule (.*) index.php?rewrite=2 [L,QSA]



# Rewrite all directory-looking urls

RewriteCond %{REQUEST_URI} /$

RewriteRule (.*) index.php?rewrite=1 [L,QSA]



# Try to route missing files

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} public\/ [OR]

RewriteCond %{REQUEST_FILENAME} \.(jpg|gif|png|ico|flv|htm|html|php|css|js)$

RewriteRule . - [L]



# If the file doesn't exist, rewrite to index

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php?rewrite=1 [L,QSA]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top