SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: mod rewrite

  1. #1
    SitePoint Addict shrikie's Avatar
    Join Date
    Dec 2002
    Location
    Hyperion
    Posts
    234
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    mod rewrite

    Hi guys, I have a problem with mod rewrite, i can't figure it out

    Ok so I want everything

    www.domainname.net/qsdfghjkl

    to be redirected to

    www.domainname.net/index.php?goto=qsdfghjkl

    I tried this:

    Options +FollowSymLinks
    RewriteEngine On
    RewriteRule /(.*) /index.php?goto=$1


    But that doesn't seem to work... anybody a clue? Thanks

  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)
    Options +FollowSymLinks
    RewriteEngine On
    RewriteRule ^([^./]+)/?$ /index.php?goto=$1 [L]

    I have few milliseconds to stay online so don't have time to explain...but it should work...


    Mr Andrea
    Former Hosting Team Advisor
    Former Advisor of '03

  3. #3
    SitePoint Addict shrikie's Avatar
    Join Date
    Dec 2002
    Location
    Hyperion
    Posts
    234
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    it works, thanks alot man!


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
  •