boadster Posted March 27, 2007 Share Posted March 27, 2007 I'm trying to write a site which query's a MySQL database using the information immediately following the first "/" in the entered URL. i.e. http://my.domain.com/querystring not http://my.domain.com/index.html?name=querystring Can this be done? Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted March 27, 2007 Share Posted March 27, 2007 You will want to use modRewrite if you want to use the follow URI for the query string: http://my.domain.com/querystring Instead of http://my.domain.com/index.html?name=querystring Quote Link to comment Share on other sites More sharing options...
boadster Posted March 31, 2007 Author Share Posted March 31, 2007 What should the rewrite directive look like to handle the following? http:// variable1.domain.com/variable2 to: http:// my.domain.com/index1.html?x=variable1&y=variable2 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.