Can anyone spot what I'm doing wrong here? I'm getting an internal server error, and when I see the apache log, I got: ".htaccess: RewriteCond: bad flag delimiters"
So the issue must rely on the .htaccess file...
Can anyone help me out to find what am I missing here?
Thanks a lot.
#already active, still:
Options +FollowSymlinks
#With this definition, our application.ini will be set as development
SetEnv APPLICATION_ENV development
#to allow redirection
RewriteEngine On
#avoid hotlinking
RewriteCond %{HTTP_REFERER} !^$ [OR]
RewriteCond %{HTTP_REFERER} !^https?://(www\.)?site\.dev [NC,OR]
RewriteCond %{HTTP_REFERER} !^https?://(www\.)?site\.something\.com [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ - [NC,F,L]
#if the request is a file or a directory or any other condition, do not redirect (1st rule), otherwise, rewrite to index (2nd rule).
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]