Remove index.php with mod_rewrite but keep css/site.css

#3
[eluser]n0xie[/eluser]
I have found it's easier to put all your public files (most people call them assets) in a folder public.

So instead of adding all those folders separately, just move them to 1 folder public and just do this:

Code:
RewriteCond $1 !^(public|robots\.txt|favicon\.ico)

Now everything in your public folder won't be affected by your rewrite rules.


Messages In This Thread
Remove index.php with mod_rewrite but keep css/site.css - by El Forum - 09-29-2009, 01:42 PM
Remove index.php with mod_rewrite but keep css/site.css - by El Forum - 09-29-2009, 01:49 PM
Remove index.php with mod_rewrite but keep css/site.css - by El Forum - 09-29-2009, 04:52 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.