in forum within subfolder (called 'forum') rewrite rules codeigniter (root folder) affecting forum subfolder. here root htaccess rules:
rewriteengine on rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule .* index.php/$0 [pt,l] rewritecond %{http_host} !^www\. rewriterule ^(.*)$ http://www.%{http_host}/$1 [r=301,l] now if example try access url forum, /forum/index.php?action=removetopic2;topic=14.0; site launch error because of these rules. there way avoid it?
use following rewritecond stop rule matching /forum:
rewritecond %{request_uri} !^/forum/ see documentation. seems %{request_uri} includes first slash behind hostname if read documentation.
Comments
Post a Comment