1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

.htaccess replace & with & in URL

Discussion in 'Apache' started by yuleane, Aug 7, 2009.

  1. #1
    I want to replace & with & in my URLs using .htaccess.
    I know how to do this in php, but I really rather use .htacces, since I would have to change many php files.
    I never really worked with .htaccess so I really only know the basics and I am not sure how to replace a random string...

    I would appreciate any help!
     
    yuleane, Aug 7, 2009 IP
  2. Bagi Zoltán

    Bagi Zoltán Well-Known Member

    Messages:
    364
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    110
    #2
    Bagi Zoltán, Aug 7, 2009 IP
  3. premiumscripts

    premiumscripts Peon

    Messages:
    1,062
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Err, you have to do this in PHP. The reason you have to use & in HTML is for encoding purposes.. The URL in the URL bar will still just show "&". So you should not do this in .htaccess.
     
    premiumscripts, Aug 7, 2009 IP