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.

Please help with htaccess rule

Discussion in 'Apache' started by rookpl, Sep 7, 2013.

  1. #1
    Hi,
    I converted Kunena forum to phpbb3, but I've got one problem. I want my old (kunena) link to work with phpbb3, but i need to replace some characters from urls to do it.

    Is it possible to replace some characters with htaccess on the fly?

    ą => a
    ć => c
    ź => z
    ń => n
    etc...

    for example -
    this
    -http://www.something.com/forum/12-subforum-name/łóżko-t112.html - this is sample of url from old forum

    rewrite to:
    -http://www.something.com/forum/12-subforum-name/lozko-t112.html - this is sample of url, that works with new forum

    could someone help me with that? I searched for solution, but i couldn't find anything.

    p.s. sorry for my bad English ;)
     
    rookpl, Sep 7, 2013 IP
  2. JackVipor

    JackVipor Greenhorn

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #2
    This page has a solution for something very similar to yours -- http://stackoverflow.com/questions/11798734/using-htaccess-to-rewrite-special-characters-for-wordpress-url-aliases
     
    JackVipor, Sep 8, 2013 IP
  3. BreezeHost

    BreezeHost Member

    Messages:
    139
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    28
    #3
    Try adding like below :
    RewriteRule ^(.*)ą(.*)$ /$1a$2 [L,R=301]
     
    BreezeHost, Oct 3, 2013 IP