Looking for some help with Rewriting Single urls with htacces

Discussion in 'Programming' started by pig2cat, May 29, 2007.

  1. #1
    hello:)
    I've been searching on google for a while now and i've only found ways to rewrite multiple urls.. I don't know how to rewrite single urls so i'm posting here

    my problem:
    I'd like to change the url of

    http://www.piggymoo.com/forum/viewtopic.php?t=99
    to
    http://www.piggymoo.com/WatchFullmetalalchemistepisodes or FullmetalAlchemist


    and

    http://www.piggymoo.com/forum/viewtopic.php?t=137
    to
    http://www.piggymoo.com/AlloAlloEpisodes


    and some more for the other shows..

    I believe this would improve SE rankings... Could this be done with mod_rewrite? if so, how?
    +rep for any help:)
     
    pig2cat, May 29, 2007 IP
  2. vegabond

    vegabond Shabu Anower

    Messages:
    1,656
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    240
    #2
    vegabond, May 29, 2007 IP
  3. pig2cat

    pig2cat Active Member

    Messages:
    299
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    60
    #3
    I'm not looking for a phpbb mod, since it would still have piggymoo.com/forum in it
    i'm looking for a way to rewrite this with .htacces, so I can also rewrite http://www.piggymoo.com/?id=7 to http://www.piggymoo.com/links
    :)
     
    pig2cat, May 29, 2007 IP
  4. vegabond

    vegabond Shabu Anower

    Messages:
    1,656
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    240
    #4
    Sorry, I am not expert in URL rewrite.

    http://forum.modrewrite.com - there is Richard always helping people for mod rewrite issue :)

    Just post your problem there you will get an answer within 24 hrs :)
     
    vegabond, May 29, 2007 IP
    pig2cat likes this.
  5. pig2cat

    pig2cat Active Member

    Messages:
    299
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    60
    #5
    I've figured it out!

    RewriteEngine On
    RewriteBase /
    RewriteRule ^links$ index.php?id=7

    does the trick :D
     
    pig2cat, Jun 1, 2007 IP