SitePoint Sponsor

User Tag List

Results 1 to 1 of 1
  1. #1
    SitePoint Zealot websalacarta's Avatar
    Join Date
    May 2003
    Location
    Spain
    Posts
    165
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    mod_rewrite question

    Sorry, I didn´t see the above message

    Please, forgive this post


    Thanks

    ----------------------------

    Hi,

    I want to rewrite one url

    from

    http://www.mydomain.com/15/any_name
    to
    http://www.mydomain.com/mypage?id=15

    something similar to this?

    Code:
    RewriteEngine On
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]
    
    RewriteRule ^(.*) http://www.mydomain.com/mypage.php?id=$1 [L]
    thanks
    Last edited by websalacarta; Sep 17, 2007 at 12:09. Reason: mistake


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
  •