This would rewrite mysite.com/anything/ to mysite.com/index.php?page=anything

http://www.google.com/search?q=mod_rewrite+tutorial

breadfan

Born

Posts: 2

3+ Months Ago

Thank you very much However I now have to face another similar problem. Sometimes there are two parameters in the url, like http://www.mysite.com/index.php?page=gallery&photo=2 for example. What should the .htaccess look like now in order for it to work? I guess it is important to say that there is sometime only the page parameter and sometime also the photo parameter.