Avtec Posted April 29, 2010 Share Posted April 29, 2010 Hi guys ive been trying to get this here /accounts.php?username=Avtec to /accounts/Avtec/ does anyone know how to do this? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/200230-help-with-this/ Share on other sites More sharing options...
cags Posted April 29, 2010 Share Posted April 29, 2010 You mean you are trying to get /accounts/Avtec/ to /accounts.php?username=Avtec ? RewriteRule ^accounts/([a-zA-Z0-9_-]+)/?$ /accounts.php?username=$1 Quote Link to comment https://forums.phpfreaks.com/topic/200230-help-with-this/#findComment-1050787 Share on other sites More sharing options...
Avtec Posted April 30, 2010 Author Share Posted April 30, 2010 Thanks for that, one more thing how would i do this? /accounts.php?username=Avtec&iphistory=yes to /accounts/Avtec/iphistory/ Thanks, ive tried a few ways but get server 500 error Quote Link to comment https://forums.phpfreaks.com/topic/200230-help-with-this/#findComment-1050871 Share on other sites More sharing options...
cags Posted April 30, 2010 Share Posted April 30, 2010 As I said in my previous post you do not do this to that in the order you have, it's that to this. RewriteRule ^accounts/([a-zA-Z0-9_-]+)/iphistory/?$ /accounts.php?username=$1&iphistory=yes Quote Link to comment https://forums.phpfreaks.com/topic/200230-help-with-this/#findComment-1050923 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.