Results 1 to 3 of 3
  1. #1
    ABW Ambassador kse's Avatar
    Join Date
    November 29th, 2005
    Posts
    2,511
    Question .htaccess URL parameters repacement
    I want to replace the URL parameters using my .htaccess file

    say I currently use

    cars.php?SeachFor=Suzuki

    To search for Suzuki now I want to redirect this page that contains
    "?SearchFor=" to "?psps_search=" in my .htaccess file so the page it get redirected to would be:

    cars.php?psps_search=Suzuki

    Can this be done in .htaccess file?? If so can anyone give me the code include the 301 redirect?

    Thank you
    MERCHANTS: Start showing your coupons directly on your site, that way your shoppers will stop leaving your site looking for them!! If not then remove your Coupon Box!!

  2. #2
    ...and a Pirate's heart. Convergence's Avatar
    Join Date
    June 24th, 2005
    Posts
    6,918
    Should be pretty straight forward, try this (have not tested)...


    Code:
    RewriteEngine On 
    RewriteBase / 
    
    RewriteRule ^(.*)SeachFor(.*)$ $1psps_search$2 [R=301,L]
    or:

    Code:
    RewriteRule ^(.*)SeachFor(.*)$ http://yoursite.com/$1psps_search$2 [R=301,L]
    Salty kisses, Sandy toes, and a Pirate's heart...

  3. Thanks From:
    kse

  4. #3
    ABW Ambassador kse's Avatar
    Join Date
    November 29th, 2005
    Posts
    2,511
    Thanks
    MERCHANTS: Start showing your coupons directly on your site, that way your shoppers will stop leaving your site looking for them!! If not then remove your Coupon Box!!

  5. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. url masking using htaccess or php redirect
    By breeke in forum Programming / Datafeeds / Tools
    Replies: 3
    Last Post: April 29th, 2010, 07:48 PM
  2. Search Parameters
    By dssc in forum GoldenCAN
    Replies: 0
    Last Post: November 15th, 2007, 05:13 PM
  3. URL Parameters specifically cjsku
    By rcgb in forum Commission Junction - CJ
    Replies: 0
    Last Post: November 13th, 2007, 09:58 PM
  4. Linkshare link parameters
    By DDs in forum Rakuten LinkShare - LS
    Replies: 3
    Last Post: May 30th, 2004, 09:35 PM
  5. BeFree URL Redirect Parameters
    By newemail in forum Commission Junction - CJ
    Replies: 3
    Last Post: December 4th, 2003, 08:29 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •