SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Jul 2005
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Redirect dynamic URL to directory

    I would like to rewrite one URL to appear as a directory, i've trawled the various websites but can't see how this could be done.

    Basically I want http://www.domain.com/index.php?m=3&i=9 to appear as http://www.domain.com/sports

    Thanks

  2. #2
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,650
    Mentioned
    19 Post(s)
    Tagged
    3 Thread(s)
    SS,

    What you're trying to do (from your example) will require a RewriteMap which requires access to the httpd.conf file (in order to run an application file to access the database to "connect" sports to m=3&i=9.

    I've discussed this in my signature's tutorial article.

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator


Bookmarks

Posting Permissions

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