0

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 :)

1 Answer 1

2

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

2
  • It was, strange.... it seems putting it here has broke it Jan 30, 2013 at 21:36
  • Maybe that's part of the problem - does your .htaccess have mixed line endings?
    – Eric3
    Jan 31, 2013 at 5:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .