Page 1 of 1

AuthUserFile

Posted: Wed Sep 15, 2010 7:23 pm
by milagro
Hello I have a problem with a subdirectory.
The sub dir is located http://www.domein.com/subdir it contains a .htaccess AuthUserFile and a index.php (A none cms relate dir)

The problem is that the url displays

Not Found
The requested URL was not found on this server.

My provider tells me that it has to do with the .htaccess in my public_html map.
I am using the default .htaccess of the cms but I don't know what to edit.

Code: Select all

# BEGIN Optional settings

# Attempt to override some php settings, these settings may be helpful on some hosts if your
# default configuration does not meet CMS's minimum requirements, and your host
# has given your account appropriate permissions
#php_value upload_max_filesize "10M"
#php_value session_save_path "tmp/cache"

#php_flag magic_quotes_gpc Off
#php_flag register_globals Off
#php_flag session.use_trans_sid Off

php_value max_execution_time 60
php_value upload_max_filesize 12M
php_value post_max_size 12M

# Turns off directory browsing
# not absolutely essential, but keeps people from snooping around without
# needing empty index.html files everywhere
Options -Indexes

# Deny access to config.php
# This can be useful if php ever breaks or dies
# Use with caution, this may break other functions of CMSms that use a config.php
# file.  This may also break other programs you have running under your CMSms
# install that use config.php.  You may need to add another .htaccess file to those
# directories to specifically allow config.php.
<Files "config.php">
order allow,deny
deny from all
</Files>

# Sets your 403 error document
# not absolutely essential to have,
# or you may already have error pages defined elsewhere
ErrorDocument 403 /forbidden403.shtml

# No sense advertising what we are running
ServerSignature Off

# END Optional Settings

# BEGIN CMSMS and Rewrite Rules
# Make sure you have Options FollowSymLinks
# and Allow on

RewriteEngine On

# Might be needed in a subdirectory
#RewriteBase /

# URL Filtering helps stop some hack attempts
#IF the URI contains a "http:"
RewriteCond %{QUERY_STRING} http\: [OR]
#OR if the URI contains a "["
RewriteCond %{QUERY_STRING} \[ [OR]
#OR if the URI contains a "]"
RewriteCond %{QUERY_STRING} \] [OR]
#OR if the URI contains a "<__script__>"
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
#OR script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
#OR any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
RewriteRule ^.*$ - [F,L]
# END Filtering

# CMSMS Rewriting
# Set assume mod_rewrite to true in config.php and clear CMSMS cache
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
# END CMSMS

# END Rewrite rules

Re: AuthUserFile

Posted: Wed Sep 15, 2010 7:31 pm
by uniqu3
If your cmsms installation is in subdirectory you need to edit .htacces according to this.
# Might be needed in a subdirectory
RewriteBase /yourcmsmsdirectory

Re: AuthUserFile

Posted: Wed Sep 15, 2010 7:37 pm
by milagro
Nice that works

Re: AuthUserFile

Posted: Sun Sep 26, 2010 2:05 pm
by milagro
Now my the URL of my news items don't work any more
http://www.domein.com/news/2/15/article