Bleach Anime - Myspace Layouts - Payday Advance - Car Loan - Payday Loans

PDA

View Full Version : Dynamic .htaccess


puffyz
Feb 10th 2008, 10:05 pm
I am trying to make the site dynamic based on two parameters:

RewriteRule ^(.*)/(.*)$ /category.php?type=$1&query=$2 [L]


www.url.com/producer/him

but when I put that in,

none of my dir work, such as
/images


so how can I get around this without putting a word indicator in url or typing out every option in htaccess?

Thanks.

joebert
Feb 11th 2008, 2:02 am
When you say no typing out every option, you mean you don't want somthing like this, which works ?
RewriteRule ^(images|any-other-dirs|folder) $1 [L]
RewriteRule ^(.*)/(.*)$ /category.php?type=$1&query=$2 [L]

puffyz
Feb 11th 2008, 1:59 pm
ya that still 404's my images/ dir

using

RewriteRule ^(images|any-other-dirs|folder) $1 [L](I want to exclude these from being rewritten)


RewriteRule ^([^/]+)/([^/]+)$ /category.php?type=$1&query=$2 [L]


thanks in advance

puffyz
Feb 11th 2008, 2:07 pm
thanks just fyi

RewriteRule ^(images) - [L]

worked..

giannhs_29
Feb 11th 2008, 9:54 pm
i dont understand:S

joebert
Feb 11th 2008, 10:51 pm
I'd be interested to see what Apache placed in the error/access logs for the request that 404'd.