htaccess... redirecting based on username?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PornAddict
    Confirmed User
    • Feb 2002
    • 1401

    #1

    htaccess... redirecting based on username?

    I got the piece of code from here before, but can't find it due to not being able to search. Is there anyone out there that can help me with it?

    Basically, I need to redirect a certain username when they try and enter my member's area. It was similar to the mod rewrite that would redirect based on http referrer.

    Any help would be greatly appreciated...

    - PornAddict
  • jimmyf
    OU812
    • Feb 2001
    • 12651

    #2
    can't help with user name redirect


    but I also had code for htaccess that redirects by country
    like

    .de
    or
    .net
    or
    fr
    Epic CashEpic Cash works for me
    Solar Cash Paysite Plugin
    Gallery of the day freesites,POTD,Gallery generator with free hosting

    Comment

    • Project-Shadow
      Confirmed User
      • Feb 2003
      • 7340

      #3
      Erm, you mean like abused usernames?
      I'd try and get in touch with people who own password protection programmes.

      Comment

      • WWC-Hagan
        Confirmed User
        • May 2004
        • 78

        #4
        in your .htaccess file, you can use the:

        %
        PHP Code:
        { 
        
        REMOTE_USER} variable, which is the member's username.

        so in you would use mod_rewrite, and something like:


        RewriteCond %haha123;REMOTE_USER} ^user.* [NC]
        RewriteRule whatever...goes...here
        Last edited by WWC-Hagan; 06-23-2004, 08:17 AM.
        SIG TOO BIG! Maximum 120x60 button and no more than 3 text lines of DEFAULT SIZE and COLOR. Unless your sig is for a GFY top banner sponsor, you may use a 624x80 instead of a 120x60. Let me repeat... A 120 x 60 button and no more that 3 lines of DEFAULT SIZE AND COLOR text.

        Comment

        • PornAddict
          Confirmed User
          • Feb 2002
          • 1401

          #5
          Thank you Haganxy... that is exactly the code needed. I appreciate the help greatly!

          - PornAddict

          Comment

          Working...