SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict Huscy's Avatar
    Join Date
    Jul 2002
    Location
    Newcastle, UK
    Posts
    318
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    mod_rewrite basics...

    OK, can someone write me a basic rule to do this:

    if i link to
    /products/productnumber
    it wil redirect to
    /?browse=productnumber

    - thanks, I'l try to disect it from there if someone can do this

  2. #2
    FreeBSD The Power to Serve silver trophy pippo's Avatar
    Join Date
    Jul 2001
    Location
    Italy
    Posts
    4,514
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OK,

    >> /products/productnumber
    >> /?browse=productnumber

    /.htaccess
    Code:
    RewriteEngine On
    
    RewriteRule ^products/([^/]+)/?$ /?browse=$1 [L]

    Mr Andrea
    Former Hosting Team Advisor
    Former Advisor of '03

  3. #3
    SitePoint Addict Huscy's Avatar
    Join Date
    Jul 2002
    Location
    Newcastle, UK
    Posts
    318
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    any idea why this doesnt work?

    Options +FollowSymlinks
    RewriteEngine On
    RewriteBase /
    RewriteRule ^aws/digitalcameras/Argus$ /aws/?Browse=507722


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
  •