adampatterson / Tentacle

Tentacle makes it easy to Design, Develop, and Write content for the web.
http://tentaclecms.com
Other
25 stars 3 forks source link

Fixing the htacess file for 406 Error and subdir install #169

Open RoyalC opened 11 years ago

RoyalC commented 11 years ago

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.

adampatterson commented 11 years ago

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 commented 11 years ago

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