• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.

.htaccess issue

Status
Not open for further replies.

JakeSully

👽 Chevereto Freak
Website URL
<private>

Chevereto version
3.10.4

Description of the issue
Hi,

the .htaccess file is causing other folders in sub-domains/subfolders to go 403 Forbidden. once i rename .htaccess to .htaccess.old i can view the folder again.

Is there any coding i could add that will make so sub-domains/subfolders won't be effected by .htaccess from your script that's placed in root of public_html?

Oh also i'm testing it on a localhost atm which is how i found this problem, when i etc visit http://localhost/ for main site but then when i wanna visit sub site/files at http://localhost/files thats when it says 403 forbidden due to .htaccess and this folder has nothing todo with mailn site.

/thanks
 
Dont know whats inside the htaccess because i changed mine from the default.
But you probably have this on it:

Options All -Indexes

That will return a 403 error as it should, try creating a index file on that folder, should make it work.
 
Use RewriteBase.

Chevereto maps all non-existent paths and files to /index.php so if you put another system inside Chevereto's root folder, it will be Chevereto doing the rewrite for the virtual folders/files within that directory.

In the other script, at the root .htaccess you have to add RewriteBase /path to stop the override.
 
Dont know whats inside the htaccess because i changed mine from the default.
But you probably have this on it:

Options All -Indexes

That will return a 403 error as it should, try creating a index file on that folder, should make it work.
okay but problem is folder has few image files as test to see if i can still view that folder and browse those image files. But since .htaccess is blocking it i can't :/ so thats why i hope there is a way to make so it won't effect sub folders.
 
just added RewriteBase /test but when i view it i still get 403 Forbidden. so that did not solve it :/
 
Here is a copy of my .htaccess
Code:
# Disable server signature
ServerSignature Off

# Disable directory listing (-indexes), Multiviews (-MultiViews) and enable Follow system links (+FollowSymLinks)
Options -Indexes
Options -MultiViews
Options +FollowSymLinks

<IfModule mod_rewrite.c>

    RewriteEngine On
    
    # If you have problems with the rewrite rules remove the "#" from the following RewriteBase line
    # You will also have to change the path to reflect the path to your Chevereto installation
    # If you are using alias is most likely that you will need this.
    #RewriteBase

    # 404 images
    # If you want to have your own fancy "image not found" image remove the "#" from RewriteCond and RewriteRule lines
    # Make sure to apply the correct paths to reflect your current installation
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule images/.+\.(gif|jpe?g|png|bmp) - [NC,L,R=404]
    #RewriteRule images/.+\.(gif|jpe?g|png|bmp) content/images/system/default/404.gif [NC,L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} !\.(css|js|html|htm|rtf|rtx|svg|svgz|txt|xsd|xsl|xml|asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|exe|gif|gz|gzip|ico|jpe?g|jpe|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|swf|tar|tif|tiff|wav|wma|wri|xla|xls|xlsx|xlt|xlw|zip)$ [NC]
    RewriteRule . index.php [L]
    
</IfModule>

I hope this will give you all more solution for me to fix this problem. Since doing rewritebase seems to cause etc another script to start redirecting sub folders within that folder back to it's index file :/
 
actually i found which line was cause of it. it's the Options -Indexes if i change it to Options +Indexes then it lets me read whats inside that folder again 🙂

P.s just saw now i could edit the posts xD didn't see that until now so apologize for 3 replies in a row.
 
Status
Not open for further replies.
Back
Top