benkyma -1 Light Poster

Hi,

I'm struggling with mod_rewrite. I need it to rewrite:
http://www.domain.com/C/V

to:

http://www.domain.com/?category=C&video=V

So far I have these two rules:

RewriteRule ^([^/\.]+)/?$ /index.html?category=$1 [L]
RewriteRule ^([^/\.]+)/([^/\.]+)/?$ /index.html?category=$1&video=$2 [L]

but it doesn't seem to work. I'm not receiving any parameters through in my js on the other side. It also behaves differently depending on whether there is a slash on the end or not. Does anyone have more experience with this than me? (everyone probably)

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.