views:

85

answers:

2

I am sick of this kind of URL: www.domain.com/something/?id=person&photos=photoID&variable1=others&...

I am using apache, learning to write .htaccess now. Can anyone show me the basic code for this one?

Ugly: www.domain.com/something/?id=person&photos=photoID

Goal: www.domain.com/something/person/photoID

+3  A: 

This is an extremely helpful article on Mod_Rewrite

Russell Dias
+3  A: 
RewriteEngine on

RewriteRule ^something/(.*)/(.*)$ something/?id=$1&photos=$2 [QSA]
S.Mark