Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I am trying to debug an issue with my .htaccess file.

I have a directory which is /wp-content/plugins/lot-wp-app/content which contains a .htaccess like so:

Options +FollowSymLinks
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ../generate.php?file=$1 [L,QSA]

And I don't know why it has stopped working, it may be due to it being invalid.

generate.php is located at /wp-content/plugins/lot-wp-app/generate.php

The idea is that an Android app would request /wp-content/plugins/lot-wp-app/content/posts-etc.json and do reduce server load, it would load that file if it existed. However, we delete the cache when a new post is made so that it is fresh (but it's generated on-demand, so you can browse our history nicely)

Any help would be appreciated :)

share|improve this question

1 Answer 1

To start, RewriteEngine On should be on its own line.

share|improve this answer
    
It was, strange.... it seems putting it here has broke it –  Joe Simpson Jan 30 '13 at 21:36
    
Maybe that's part of the problem - does your .htaccess have mixed line endings? –  Eric3 Jan 31 '13 at 5:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.