Welcome Guest, Not a member yet? Register   Sign In
what is the best RewriteCond set up in .htaccess of CI site to make the most popular plug in, add on, imge, video, pdf e
#1

[eluser]searain[/eluser]
to make tinymce and other js, css scripts works, I use this RewriteCond from the tutorial cisample.

Cisample's RewriteCond make tinymce js works
Code:
RewriteCond $1 !^(index\.php|img|css|js|video_files|robots\.txt|favicon\.ico)

CodeIgniter User Guile RewriteCond (http://ellislab.com/codeigniter/user-gui.../urls.html) will not work on tinymce and js etc.
Code:
RewriteCond $1 !^(index\.php|images|robots\.txt)

Cisample's RewriteCond
Code:
RewriteCond $1 !^(index\.php|img|css|js|video_files|robots\.txt|favicon\.ico)

still may not cover a lot of issues.

What is the best set up for RewriteCond, so I can cover most of the popular/general issues/usages I will face?

Thanks.
#2

[eluser]jayrulez[/eluser]
Code:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>
#3

[eluser]Dam1an[/eluser]
The best one is the one that works for you, which may not be the one that works for everyone else
Mine is
Code:
RewriteCond $1 !^(index\.php|images|css|js|robots\.txt|favicon\.ico|license.txt)
Which coveres everything I need




Theme © iAndrew 2016 - Forum software by © MyBB