htaccess help needed :: convert dynamic url

Discussion in 'PHP' started by yoursanjay, Nov 16, 2010.

  1. #1
    Hello,

    I have a dynamic website where all the pages and sections are pulling out from Dynamic URLs like
    http://www.mysite.com?pageId=5
    or
    http://www.mysite.com?pageId=9


    There are hundreds of these type of links placed in my site and now I prefer to display static URL in the address bar. For example,
    If any user click on the link 'http://www.mysite.com?pageId=5', in the address bar the URL it will be converted to 'http://www.mysite.com/service.html' and if clicked on 'http://www.mysite.com?pageId=9', it will be converted to 'http://mysite.com/about,html' and so on.

    Will it can be done through htaccess file? If so, what should I write in the htaccess file?

    I can not change the dynamic URLs of my site right now because there are hundreds of links are in my site.

    Please suggest.
     
    yoursanjay, Nov 16, 2010 IP
  2. MyVodaFone

    MyVodaFone Well-Known Member

    Messages:
    1,048
    Likes Received:
    42
    Best Answers:
    10
    Trophy Points:
    195
    #2
    It would require some php as-well, if you post up some php code, someone will reply
     
    MyVodaFone, Nov 17, 2010 IP
  3. samyak

    samyak Active Member

    Messages:
    280
    Likes Received:
    7
    Best Answers:
    4
    Trophy Points:
    90
    #3
    This offiers very little, if any value to the site. Its neither SEo friendly now allows users to remember the links. You really need to consider changing links in the site to user friendly links and then write htaccess codes to redirect them to pages such as pageId=9 etc.
     
    samyak, Nov 18, 2010 IP
  4. sneharastogi

    sneharastogi Peon

    Messages:
    72
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You can to contact me! but yes there would be some charge for this service.
     
    sneharastogi, Nov 18, 2010 IP