php - htaccess exclude folders from rewrite? -


i have need missing 1 important part.

i have htaccess rewrite change .php extension /

i figured out way exclude files, need ability exclude few folders

this have..

rewriteengine on  ## don't touch /folder uris rewriterule ^snippets/ - [l,nc] rewriterule ^admin/ - [l,nc] rewriterule ^emails/ - [l,nc]  # hide .php extension snippet # externally redirect /dir/foo.php /dir/foo rewritecond %{the_request} !/(confirm-ticket|account-profile)\.php [nc] rewritecond %{the_request} ^[a-z]{3,}\s([^.]+)\.php [nc] rewriterule ^ %1/ [r,l]  # internally forward /dir/foo /dir/foo.php rewritecond %{request_filename} !-d rewritecond %{request_filename}\.php -f rewriterule ^(.+?)/?$ $1.php [l] 

i pretty sure don't touch /folder uris section wrong, folders trying exclude rewrite... help?

thanks, -o


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -