Help Needed to Rewrite URL with htaccess / php / javascript

Discussion in 'Blogging' started by Claudiu, May 12, 2010.

  1. Claudiu

    Claudiu Regular Member

    Feb 28, 2009
    Likes Received:
    I have an html template that displays urls like: and i need to rewrite the url to a user friendly one like

    I've managed to redirect the ugly url to nice url, but i get 404 error

    The urls are written through a javascript file.

    Since my knoledge on js, apache, php are very limited, i need your help.

    i'd appreciate some ideeas on why do i get 404 error and what solutions am i left with on making this work.

    htaccess (part of it)
    rewritecond %{QUERY_STRING} ^id=(.+)
    RewriteRule ^product\.html$ [R=301,L]
    Last edited: May 12, 2010