views:

29

answers:

1

now i have set.php?mod=avatar set.php?mod=info now i want make it set/mod this mean useing this

RewriteRule ^set/(.*)/?$ set.php?mod=$1

its working but when open it like that set/ its give me 404 error how i can make it in one pharse

like that RewriteRule ^set/if this exsist ok if not i want it equal set.php onlly(.*)/?$ set.php?mod=$1

+1  A: 

What about:

RewriteRule ^set/([^/]+)/?$ set.php?mod=$1
gregseth
now working dear
moustafa