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
    Regular Coder
    Join Date
    Apr 2004
    Location
    Philadelphia
    Posts
    241
    Thanks
    2
    Thanked 5 Times in 5 Posts

    Changing Link Variables to Directories

    I've seen it dozens of times and I've attempted to google it but I think I'm having an issue finding its name. When you change a link's variables into directories, for example, changing show.php?id=40 to show/variables-40.php, what is this called? If you know of very good tutorials on how to do this, that too would help me immensely. I'm also apologizing for not putting this in the correct section. I couldn't decide if it was php, .htaccess, or just general web buidling, so I went with the general option . I basically want to create a custom site with game replays and tutorials on builds and such but without all the id=VARIABLE stuff. I want things set into custom links that do not change.


    Thanks,
    Anthony

  • #2
    Codeasaurus Rex
    Join Date
    Jun 2008
    Location
    Redmond, WA
    Posts
    660
    Thanks
    31
    Thanked 100 Times in 94 Posts
    It's call MOD REWRITE for Apache. It's very difficult to learn if you don't already have a working knowledge of pregex.

    Here's a few links to get you started:
    http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html

    http://www.ilovejackdaniels.com/chea...e-cheat-sheet/

    http://www.easymodrewrite.com/
    Unless otherwise stated, any code posted is most likely untested and may contain syntax errors.
    My posts, comments, code, and suggestions reflect only my personal views.
    Web Portfolio and Code Snippets: http://shanechism.com


  •  

    Posting Permissions

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