Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Senior Coder
    Join Date
    Aug 2005
    Posts
    1,119
    Thanks
    2
    Thanked 1 Time in 1 Post

    URL rewrite htaccess


  • #2
    Senior Coder
    Join Date
    Aug 2005
    Posts
    1,119
    Thanks
    2
    Thanked 1 Time in 1 Post
    I tried:

    Options +FollowSymlinks
    RewriteEngine on
    RewriteRule ^([0-9a-zA-z_]+) viewprofile.php?name=$1 [nc]

    But it appears to not do anything, name turns out empty or something like that.

  • #3
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    Quote Originally Posted by thesavior
    Funny how i still haven't recieved a response.
    You're not entitled to one, and bumping a thread repeatedly certainly won't help.

  • #4
    New Coder
    Join Date
    Aug 2006
    Posts
    34
    Thanks
    0
    Thanked 1 Time in 1 Post
    A-z is where the problem lies. You need a capital Z there.

    Something like
    RewriteRule ^([0-9a-zA-z_]+)$ viewprofile.php?name=$1

    would probably work

    Mind you: that's only the case if the .htaccess file is in the /users/ directory.

    If it's in /, then it'd be
    RewriteRule ^/([0-9a-zA-z_]+)$ viewprofile.php?name=$1

  • #5
    Senior Coder
    Join Date
    Aug 2005
    Posts
    1,119
    Thanks
    2
    Thanked 1 Time in 1 Post
    okay. Thanks alot, that works.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •