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? Quote Link to comment 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 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.