PhilipK Posted June 12, 2011 Share Posted June 12, 2011 I want to make a rewrite which changes... http://daroom.info/$NUM -> http://daroom.info/index.php?rand=$NUM How should I go about this? Link to comment https://forums.phpfreaks.com/topic/239154-need-help-on-a-rewrite/ Share on other sites More sharing options...
requinix Posted June 12, 2011 Share Posted June 12, 2011 Use the usual kind of thing that works for redirecting non-existant files to a script: 1. A RewriteCond to check if the request is not a file 2. A RewriteCond to check if the request is not a directory 3. A RewriteRule that matches only digits and rewrites to your index.php Link to comment https://forums.phpfreaks.com/topic/239154-need-help-on-a-rewrite/#findComment-1228820 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.