can anybody help me with a mod_rewrite rule real quick?

RewriteRule ^(.*) index.php?category=$1 [L]

its working but my file data.php which is being loaded into index.php via jquery get isnt outputting anything and I think its being routed to index.php?category=data.php which is wrong obviously.

so how can I redirect things like /statistics /facts etc without also redirecting data.php

thanks

This tells to NOT (!) end with data.php. Put it before the rewrite:

RewriteCond %{REQUEST_URI} !data.php$
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.