gevans Posted February 3, 2009 Share Posted February 3, 2009 I use a lot of htaccess for rewriting urls but for somereason this simple one is screwing me up I want this; confirmation?4196F6D8-A04E-045E-E686-05892BAC46C8 to point at; confirmation.php?guid=4196F6D8-A04E-045E-E686-05892BAC46C8 For this I'm using; RewriteRule ^confirmation?([A-Z0-9-]{36})$ confirmation.php?guid=$1 For some reason this isn't working?? Quote Link to comment Share on other sites More sharing options...
limitphp Posted February 3, 2009 Share Posted February 3, 2009 I use a lot of htaccess for rewriting urls but for somereason this simple one is screwing me up I want this; confirmation?4196F6D8-A04E-045E-E686-05892BAC46C8 to point at; confirmation.php?guid=4196F6D8-A04E-045E-E686-05892BAC46C8 For this I'm using; RewriteRule ^confirmation?([A-Z0-9-]{36})$ confirmation.php?guid=$1 Maybe the question mark is messing things up? Maybe put a backslash before it? Quote Link to comment Share on other sites More sharing options...
gevans Posted February 3, 2009 Author Share Posted February 3, 2009 It shouldn't need to be escaped at that part of the pattern, I have tried it though (it sisn't work) thanks though Quote Link to comment Share on other sites More sharing options...
corbin Posted February 4, 2009 Share Posted February 4, 2009 Try: RewriteRule ^confirmation?([A-Z0-9-]{36})$ /confirmation.php?guid=$1 Or RewriteRule ^confirmation\?([A-Z0-9-]{36})$ /confirmation.php?guid=$1 Or RewriteRule ^confirmation\?([A-Z0-9-]{36})/?$ /confirmation.php?guid=$1 Quote Link to comment Share on other sites More sharing options...
gevans Posted February 4, 2009 Author Share Posted February 4, 2009 Thanks for the try, the third option was the only one I hadn't attempted and it still offered no luck. I've decided to go with a forward slash instead of the question mark now, which kind of proves taht there isn't a problem with the rewrite as it works perfectly. 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.