Welcome Guest, Not a member yet? Register   Sign In
mod_rewrite
#11

[eluser]Gordaen[/eluser]
I'd assume that you have an images (or similar) directory, so you could add another pipe and add that directory name. You'll definitely want to read up on regular expressions. Here's a quick explanation:

!^(index\.php|uploads|css)

! = not
^ = start of line
\. = escaping the period (otherwise a period has a special meaning and can sub in for any character)
| = or

Essentially, if the URL does NOT (!) start with (^) index.php, uploads, or css, then do the rewrite.


Messages In This Thread
mod_rewrite - by El Forum - 06-03-2009, 04:41 PM
mod_rewrite - by El Forum - 06-03-2009, 05:21 PM
mod_rewrite - by El Forum - 06-03-2009, 05:24 PM
mod_rewrite - by El Forum - 06-03-2009, 05:29 PM
mod_rewrite - by El Forum - 06-03-2009, 05:32 PM
mod_rewrite - by El Forum - 06-03-2009, 05:32 PM
mod_rewrite - by El Forum - 06-03-2009, 05:35 PM
mod_rewrite - by El Forum - 06-03-2009, 05:36 PM
mod_rewrite - by El Forum - 06-03-2009, 05:46 PM
mod_rewrite - by El Forum - 06-03-2009, 05:56 PM
mod_rewrite - by El Forum - 06-04-2009, 08:12 PM
mod_rewrite - by El Forum - 06-04-2009, 08:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB