Forum Moderators: phranque

Message Too Old, No Replies

YAMP - Yet Another Mod-rewrite Problem

         

mexicoshanty

3:39 pm on Jun 1, 2005 (gmt 0)

10+ Year Member



I thought i had mod-rewrite working .. but i was wrong.

At the moment i've got

# Do not rewrite these subfolders
rewriteCond %{REQUEST_URI}!^/images/

RewriteRule ^(.*)/$ /?p=$1 [L]
RewriteRule ^css/(.*).css$ /?p=css&css=$1

so domain.com/page/ goes to domain.com/?p=page
but if i type in domain.com/page/?variable=value it sets the get variable 'p' but 'variable' gets lost.

Is someone able to help with with this?

Thanks

jdMorgan

4:14 pm on Jun 1, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



See the [QSA] flag in the mod_rewrite RewriteRule documentation [httpd.apache.org].

Jim

mexicoshanty

1:34 am on Jun 2, 2005 (gmt 0)

10+ Year Member



Yay works like a champ, thanks