htaccess problem – WP not rendering
-
Sorry – I’m a newbie.
I’ve just ported a site from another host where I had a an htaccess file already working. On the new host I have WordPress installed.The ISP automatically added the AddType line “AddType x-httpd-php53 .php” as the first line to my existing .htaccess file. Well and good.. but my WP home page renders as a directory browsing list.
If I remove all my content from the .htaccess, leaving only the single “AddType x-httpd-php53 .php” line then the page renders properly.
I have also removed all my rewrite content and left my file handling/cache content in to make sure that it is not a rewrite issue but the problem still persists. Simply put when I have only “AddType x-httpd-php53 .php” in my .htaccess file – everything fine. When my file begins:
AddType x-httpd-php53 .php options +Includes #compress text, html, javascript, css, xml etc: AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/htm AddOutputFilterByType DEFLATE text/xml AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript AddOutputFilterbyType DEFLATE image/ico AddOutputFilterbyType DEFLATE image/gif AddOutputFilterbyType DEFLATE image/jpg AddOutputFilterbyType DEFLATE image/jpeg AddOutputFilterbyType DEFLATE image/png # Enable caching headers ExpiresActive On ExpiresDefault "access plus 4 hours" ExpiresByType application/javascript A900 ExpiresByType application/x-javascript A900 ExpiresByType text/javascript A2592000 ExpiresByType text/html M604800 ExpiresByType text/xml A90 ExpiresByType text/css A2592000 ExpiresByType text/plain A2592000 ExpiresByType image/gif A2592000 ExpiresByType image/jpg A2592000 ExpiresByType image/jpeg A2592000 ExpiresByType image/png A2592000 ExpiresByType image/bmp A2592000 ExpiresByType application/x-shockwave-flash A3600 # Activate SSI for HTML and or SHTML file types AddType text/html .html AddType text/html .shtml AddHandler server-parsed .html AddHandler server-parsed .shtml AddHandler server-parsed .htmthen the directory browsing occurs. Is it something wrong with the order of commands (I have tried placing the php handler with the others).
thanks for taking the time!
Regards
The topic ‘htaccess problem – WP not rendering’ is closed to new replies.