SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Nov 2012
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    getting 500 Error while using RewriteMap in .HTACCESS

    In htaccess my code is

    RewriteMap country2id txt:map_country.txt
    RewriteRule ^/country/(.*) /call_country.php?id=${country2id:$1|NOTFOUND} [PT]

    For this code its showing 500 internal Error..

    Plz Anybody give me a Solution..

    Thanks in Advance..

  2. #2
    Utopia, Inc. silver trophy
    ScallioXTX's Avatar
    Join Date
    Aug 2008
    Location
    The Netherlands
    Posts
    9,031
    Mentioned
    152 Post(s)
    Tagged
    2 Thread(s)
    You can't use RewriteMap in htaccess, only in http.conf -- the main Apache conf file. If you're on shared hosting you most likely don't have access to that.
    Also, you can't address the query string in a RewriteRule, you need to that in a RewriteConf.
    Rémon - Hosting Advisor

    Minimal Bookmarks Tree
    My Google Chrome extension: browsing bookmarks made easy


Tags for this Thread

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
  •