xzazx Posted January 11, 2007 Share Posted January 11, 2007 Okay well I'm making a simple thing.When you type in : www.myserver.com/Username, it should direct you to www.myserver.com/showprofile.php?id=UsernameI made a .htaccess file with the following code:[code=php:0]RewriteEngine OnRewriteRule ^(.*)$ /showprofile.php?id=$1 [L][/code]That works perfectly, does what I want, BUT (yes there's always a but ) when I try to open other files which are in the root folder, such as index.php or viewforum.php or so, it just does the same with the files (offcourse, because that's what I programmed in the .htaccess), and so kicks in showprofile.php?id=index.php ... Which is offcourse not what I want.Now I read about conditions..And want to ask if you people can help me with a solution condition code to filter those files out (so, not put them in the url and just threat them as normal).Thanks in advance, hope to hear from youGreets,Maikel 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.