.htaccess blocking access to PHP page

I have a directory in my Apache web service. If I have no configuration file in it I can access a test.php file in it, but as soon as I add the following .htaccess file I get a 404 error.

Why and what do needs to be added or changed in the .htaccess file?

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    # NOTE: If you added a web_prefix to config, add it here too, e.g.:
    RewriteRule (.*) /shindig/index.php [L]
    #RewriteRule (.*) index.php [L]
    # for OAuth signatures to work for POSTed data,
    # always_populate_raw_data needs to be turned on
    php_flag always_populate_raw_post_data On
    php_flag magic_quotes_gpc Off


Temporarily change to [L] to [L,R], and see if it is redirecting.

It may just need removing the / before shindig to get it working.

Need Your Help

Localising date format descriptors

.net internationalization date globalization

What is the best way to localise a date format descriptor?

All array elements are not assigned to model

javascript arrays express sapui5 openui5

I have the array from my expressjs which looks like below. And I am assigning this array to model in my frontend framework openui5. But only the first 100 elements of array i.e [0-99] are being loa...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.