i moving website 1 host new host configured differently , htaccess password doesn't work. have informed me settings need done via php.ini rather htaccess.
quoting part of hosts message: "errors include attempting use php_value directives in .htaccess file, not work run php cgi"
i not versed these files, have included htaccess file below , wondered if explain bits incorrect? url has been replaced.
# ---------------------------------------------------------------------- # better website experience ie users # ---------------------------------------------------------------------- # force latest ie version, in various cases when may fall ie7 mode # github.com/rails/rails/commit/123eb25#commitcomment-118920 # use chromeframe if it's installed better experience poor ie folk <ifmodule mod_headers.c> header set x-ua-compatible "ie=edge,chrome=1" # mod_headers can't match content-type, don't want send header on *everything*... <filesmatch "\.(js|css|gif|png|jpe?g|pdf|xml|oga|ogg|m4a|ogv|mp4|m4v|webm|svg|svgz|eot|ttf|otf|woff|ico|webp|appcache|manifest|htc|crx|xpi|safariextz|vcf)$" > header unset x-ua-compatible </filesmatch> </ifmodule> # <ifmodule mod_headers.c> # header set access-control-allow-origin "*" # </ifmodule> <filesmatch "\.(svg|ttf|ttc|otf|eot|woff|font.css)$"> <ifmodule mod_headers.c> header set access-control-allow-origin "*" </ifmodule> </filesmatch> # ---------------------------------------------------------------------- # proper mime type files # ---------------------------------------------------------------------- # javascript # normalize standard type (it's sniffed in ie anyways) # tools.ietf.org/html/rfc4329#section-7.2 addtype application/javascript js # audio addtype audio/ogg oga ogg addtype audio/mp4 m4a # video addtype video/ogg ogv addtype video/mp4 mp4 m4v addtype video/webm webm # svg. # required svg webfonts on ipad # twitter.com/fontsquirrel/status/14855840545 addtype image/svg+xml svg svgz addencoding gzip svgz # webfonts addtype application/vnd.ms-fontobject eot addtype application/x-font-ttf ttf ttc addtype font/opentype otf addtype application/x-font-woff woff # assorted types addtype image/x-icon ico addtype image/webp webp addtype text/cache-manifest appcache manifest addtype text/x-component htc addtype application/x-chrome-extension crx addtype application/x-xpinstall xpi addtype application/octet-stream safariextz addtype text/x-vcard vcf # ---------------------------------------------------------------------- # gzip compression # ---------------------------------------------------------------------- <ifmodule mod_deflate.c> # force deflate mangled headers developer.yahoo.com/blogs/ydn/posts/2010/12/pushing-beyond-gzipping/ <ifmodule mod_setenvif.c> <ifmodule mod_headers.c> setenvifnocase ^(accept-encodxng|x-cept-encoding|x{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[x~-]{4,13}$ have_accept-encoding requestheader append accept-encoding "gzip,deflate" env=have_accept-encoding </ifmodule> </ifmodule> # html, txt, css, javascript, json, xml, htc: <ifmodule filter_module> filterdeclare compress filterprovider compress deflate resp=content-type $text/html filterprovider compress deflate resp=content-type $text/css filterprovider compress deflate resp=content-type $text/plain filterprovider compress deflate resp=content-type $text/xml filterprovider compress deflate resp=content-type $text/x-component filterprovider compress deflate resp=content-type $application/javascript filterprovider compress deflate resp=content-type $application/json filterprovider compress deflate resp=content-type $application/xml filterprovider compress deflate resp=content-type $application/xhtml+xml filterprovider compress deflate resp=content-type $application/rss+xml filterprovider compress deflate resp=content-type $application/atom+xml filterprovider compress deflate resp=content-type $application/vnd.ms-fontobject filterprovider compress deflate resp=content-type $image/svg+xml filterprovider compress deflate resp=content-type $application/x-font-ttf filterprovider compress deflate resp=content-type $font/opentype filterchain compress filterprotocol compress deflate change=yes;byteranges=no </ifmodule> <ifmodule !mod_filter.c> # legacy versions of apache addoutputfilterbytype deflate text/html text/plain text/css application/json addoutputfilterbytype deflate application/javascript addoutputfilterbytype deflate text/xml application/xml text/x-component addoutputfilterbytype deflate application/xhtml+xml application/rss+xml application/atom+xml addoutputfilterbytype deflate image/svg+xml application/vnd.ms-fontobject application/x-font-ttf font/opentype </ifmodule> </ifmodule> <ifmodule mod_expires.c> expiresactive on # perhaps better whitelist expires rules? perhaps. expiresdefault "access plus 1 month" # cache.appcache needs re-requests in ff 3.6 (thanks remy ~introducing html5) expiresbytype text/cache-manifest "access plus 0 seconds" # document html expiresbytype text/html "access plus 0 seconds" # data expiresbytype text/xml "access plus 0 seconds" expiresbytype application/xml "access plus 0 seconds" expiresbytype application/json "access plus 0 seconds" # feed expiresbytype application/rss+xml "access plus 1 hour" expiresbytype application/atom+xml "access plus 1 hour" # favicon (cannot renamed) expiresbytype image/x-icon "access plus 1 week" # media: images, video, audio expiresbytype image/gif "access plus 1 month" expiresbytype image/png "access plus 1 month" expiresbytype image/jpg "access plus 1 month" expiresbytype image/jpeg "access plus 1 month" expiresbytype video/ogg "access plus 1 month" expiresbytype audio/ogg "access plus 1 month" expiresbytype video/mp4 "access plus 1 month" expiresbytype video/webm "access plus 1 month" # htc files (css3pie) expiresbytype text/x-component "access plus 1 month" # webfonts expiresbytype font/truetype "access plus 1 month" expiresbytype font/opentype "access plus 1 month" expiresbytype application/x-font-woff "access plus 1 month" expiresbytype image/svg+xml "access plus 1 month" expiresbytype application/vnd.ms-fontobject "access plus 1 month" # css , javascript expiresbytype text/css "access plus 1 year" expiresbytype application/javascript "access plus 1 year" <ifmodule mod_headers.c> header append cache-control "public" </ifmodule> </ifmodule> <ifmodule mod_headers.c> header unset etag </ifmodule> fileetag none options -multiviews adddefaultcharset utf-8 addcharset utf-8 .html .css .js .xml .json .rss .atom options -indexes <ifmodule php5_module> php_value session.cookie_httponly true php_flag short_open_tag on </ifmodule> <ifmodule mod_rewrite.c> rewriteengine on rewriterule "(^|/)\." - [f] rewritecond %{http_host} ^xxxxxxxxxxxxxx.com$ [nc] rewriterule (.*) http://www.xxxxxxxxxxxxxx.com/$1 [r=302,l,qsa] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^(.*)$ index.php?p=$1 [qsa] </ifmodule>
i guess these bits causing trouble
<ifmodule php5_module> php_value session.cookie_httponly true php_flag short_open_tag on </ifmodule>
try removing them , see if error goes away. if bit, if not ahve more set.
if issue , find way set these in app specific php.ini or in code.
Comments
Post a Comment