tarnfeld
tarnfeld

Reputation: 26556

Allow access to one directory with htaccess?

I have the following code which works perfectly, but I want to allow access to the /assets directory?

Options +FollowSymlinks
RewriteEngine On

RewriteRule ^.* controller.php
AddHandler php5-script .php

Could someone give me a little line of code or two to help?

Upvotes: 2

Views: 6729

Answers (1)

reko_t
reko_t

Reputation: 56430

Before the rule:

RewriteCond %{REQUEST_URI} !/assets

Upvotes: 5

Related Questions