TecTao Posted June 2, 2014 Share Posted June 2, 2014 In my .htaccess, I have the following to enter a domain name then a store number such as www.domain.com/c111 The page storeNumber.php displays perfectly call the correct variables through the _GET. The help I got and has been set up works for an Alpha and thre rest numbers. What would be rewriterule be to use any random string of Alpha Numberic characters? Such as C123, 12CF, cf15, C2f5... RewriteOptions inherit RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([a-z0-9-]+)$ /storeNumber.php?storeNumberID=$1 [NC,L] Thanks for any help in advance, Mike Quote Link to comment https://forums.phpfreaks.com/topic/288927-mod-rewrite-using-random-selection-of-alpha-numeric-identifying-characters/ Share on other sites More sharing options...
Ch0cu3r Posted June 2, 2014 Share Posted June 2, 2014 What would be rewriterule be to use any random string of Alpha Numberic characters? The same one as you're currently using Quote Link to comment https://forums.phpfreaks.com/topic/288927-mod-rewrite-using-random-selection-of-alpha-numeric-identifying-characters/#findComment-1481651 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.