Tentacle icon indicating copy to clipboard operation
Tentacle copied to clipboard

Fixing the htacess file for 406 Error and subdir install

Open RoyalC opened this issue 11 years ago • 2 comments

hello if you'are like me ,in a subdir then replace the existing htacess by this one.


ErrorDocument 401 default ErrorDocument 403 default ErrorDocument 404 default ErrorDocument 500 default

php_flag register_globals off php_value memory_limit 16M

SecFilterEngine Off SecFilterScanPOST Off RewriteEngine on RewriteBase /YOURSUBDIR/ RewriteCond $1 !^(index.php|tentacle|favicon.ico|storage|themes|googlec09c5f65801ea65d.html) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?__dingo_page=$1 [L]

Don't forget to change RewriteBase /YOURSUBDIR/ by your SUBDIR name

by the way this file fix the 406 error on some hoster.

RoyalC avatar Jun 13 '13 15:06 RoyalC

I tested a while back with subdirectories and it seemed to work fine, Did you have an issue?

Also I was thinking of generating the .htaccess as part of the install and then setting the RewriteBase would be a great idea.

adampatterson avatar Jun 13 '13 16:06 adampatterson

@RoyalC Can you give me the specs of your server? 406 is a not accepted error, Not really sure what would cause that.

adampatterson avatar Jun 13 '13 16:06 adampatterson