Rewriting URLS

Discussion in 'Site & Server Administration' started by EnDLeSs_27, Jan 15, 2009.

  1. #1
    Hey,

    I am trying to change my URLS into directory URLS. Currently I have the following code in my .htaccess file

    RewriteRule ^([a-zA-Z\_\-\,]+)\.html$ index.php?sub=information&newsid=$1 [L]
    Code (markup):
    This rewrites the url with a .html extension.

    index.php?sub=information&newsid=advanced,world
    Code (markup):
    As you can see from that code the "newsid=" has a comma in it and when my rewrite rule writes the url it writes it like /advanced,world.html

    I am trying to change it to /information/advanced-world/

    Anyone know how I can achieve this?
     
    EnDLeSs_27, Jan 15, 2009 IP