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? Link to comment https://forums.phpfreaks.com/topic/44476-need-query-string-without-a-question-markis-it-possible/ 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 Link to comment https://forums.phpfreaks.com/topic/44476-need-query-string-without-a-question-markis-it-possible/#findComment-216184 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 Link to comment https://forums.phpfreaks.com/topic/44476-need-query-string-without-a-question-markis-it-possible/#findComment-218564 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.