Roee Posted July 21, 2006 Share Posted July 21, 2006 i want to get this addres:http://www.domain.com/USERand change USER to: /members/USERShttp://www.domain.com/USERresolves tohttp://www.domain.com/members/USERhow should i do it? Quote Link to comment Share on other sites More sharing options...
number9dream Posted July 21, 2006 Share Posted July 21, 2006 You haven't explained your problem very clearly. Perhaps you could give a real world example?The over-literal answer is RewriteRule ^USER /members/USER [R=301,L]Without knowing more details of your problem, a good answer is impossible. Quote Link to comment Share on other sites More sharing options...
Roee Posted July 23, 2006 Author Share Posted July 23, 2006 i have a users system.each user have a control panel & control of his site.i want to make the site address of each user like his username, so if i get in to this address: http://www.domain.com/USERi will automatic transfer (by mod_rewrite) to:http://www.domain.com/members/USERthanks Quote Link to comment Share on other sites More sharing options...
number9dream Posted July 23, 2006 Share Posted July 23, 2006 Presumably, you have other pages at the root of www.domain.com that you don't want to eb re-written?The reason for my questions is that to have an effective rule, you need to identify the pattern that you want to match. At the moment, the pattern seems to be any character whatsoever, which is fine if you want to redirect [i]everything[/i] (i.e. www.domain.com/* to www.domain.com/members/*). I'm just not sure if that's what you really want to do? 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.