SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict
    Join Date
    Feb 2012
    Location
    Kiwi in Bangkok
    Posts
    353
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re-Write Re-Direct has stopped working ? Help please :)

    I have some re-write/re-direct codes in my .htaccess file

    They were working, Yet now they are not,

    all help appreciated

    Code:
    RewriteCond %{REQUEST_URL} ^/auction_details.php$
    RewriteCond %{QUERY_STRING} ^name=Thai-Folk-Art-and-Crafts-the-Prelude-to-Thailand-2013-World-Stand-Exhibition&auction_id=100530$
    RewriteRule ^(.*)$ http://trade-th.com/29-thai-folk-art-and-crafts/details.html
    Last edited by ScallioXTX; Jun 11, 2013 at 10:57. Reason: wrapped in [code][/code]

  2. #2
    Utopia, Inc. silver trophy
    ScallioXTX's Avatar
    Join Date
    Aug 2008
    Location
    The Netherlands
    Posts
    8,892
    Mentioned
    138 Post(s)
    Tagged
    2 Thread(s)
    There is no such thing as %{REQUEST_URL} in Apache, that must be %{REQUEST_URI} (capital i, not lower L)

    Also, you should replace ^(.*)$ with .? since you're not using the backreference you're creating.
    Rémon - Hosting Advisor

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

  3. #3
    SitePoint Addict
    Join Date
    Feb 2012
    Location
    Kiwi in Bangkok
    Posts
    353
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you ScallioXTX,

    I changed the code as per your advice, and all working perfectly,

    thank you again for your help,

    best wishes

    Quote Originally Posted by ScallioXTX View Post
    There is no such thing as %{REQUEST_URL} in Apache, that must be %{REQUEST_URI} (capital i, not lower L)

    Also, you should replace ^(.*)$ with .? since you're not using the backreference you're creating.


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
  •