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 2 of 2
  1. #1
    New Coder
    Join Date
    Jul 2011
    Location
    Romania
    Posts
    16
    Thanks
    4
    Thanked 0 Times in 0 Posts

    htaccess reWrite Rule not working

    I have the following rewrite rule in the .htaccess file :
    RewriteRule ^articles/([A-Za-z0-9-]+)/?$ view.php?article_name=$1 [NC,L]

    and the following link [that needs to be changed accordingly]

    http://localhost/view.php?article_na...e-work-already

    Could you identify anything that might be wrong? [don't be mean, I'm new to this stuff]

  • #2
    New Coder
    Join Date
    Jan 2013
    Posts
    16
    Thanks
    0
    Thanked 1 Time in 1 Post
    Looks about right but what's the question mark doing in: "^articles/([A-Za-z0-9-]+)/?$"?


  •  

    Posting Permissions

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