apache - How to stop .htaccess instructions without rewrite loop -



apache - How to stop .htaccess instructions without rewrite loop -

i working on codeigniter project. in .htaccess file have:

1 rewriteengine on 2 rewriterule ^subfolder1/(.*)$ subfolder1/$1 [l] # pass through subfolder1 .... additional instructions

i have been getting 500 internal server error

according isp ( in shared environment can't see logs ), sec line above causing rewrite loop, resulting in error. there way stop executions of instructions @ line 2 without rewiting , causing loop if subfolder1 in request? in pseudocode:

if ^subfolder1/(.*)$ stop here ([l])

the next rule should end rewriting process in way want:

rewriterule ^subfolder1/ - [l]

using - substitution instructs rewriteengine leave url alone, still apply l (stop) flag.

apache .htaccess codeigniter mod-rewrite

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -