coolpro Posted October 9, 2008 Share Posted October 9, 2008 Can anybody help to set mod_rewrite? i have a domain upsy.lt, and i wish to rewrite these addresses 1. www.upsy.lt/city/[something] to www.upsy.lt/index.php?city=[something] for example: www.upsy.lt/city/123 to www.upsy.lt/index.php?city=123 2. www.upsy.lt/school/[something] to www.upsy.lt/index.php?school=[something] for example: www.upsy.lt/school/123 to www.upsy.lt/index.php?school=123 3. www.upsy.lt/teacher/[something] to www.upsy.lt/index.php?teacher=[something] for example: www.upsy.lt/teacher/123 to www.upsy.lt/index.php?teacher=123 Thanks a lot for helping. Quote Link to comment Share on other sites More sharing options...
corbin Posted October 10, 2008 Share Posted October 10, 2008 You can figure the other 2 out from this one: RewriteEngine On RewriteRule ^city/([0-9]+) /index.php?city=$1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.