How to improve .htaccess links?

Discussion in 'Content Management' started by Abid Ali, Aug 9, 2013.

  1. #1
    Here is my .htaccess code,

    
    <IfModule mod_rewrite.c>
    RewriteEngine On
    
    #RewriteCond %{REQUEST_URI} /view-([a-zA-Z0-9_-]+)/$
    RewriteRule ^view-([a-zA-Z0-9._-]+)/$ post.php?id=$1
    
    </IfModule>
    
    
    PHP:
    i.e, id=$1 = my-first-&-thread++ from post.php file.

    the link become
    http://site.com/view-my-first-&-thread++/
    HTML:
    and gives error 404.

    I want my link to be like
    http://site.com/view-my-first-thread/
    HTML:
    How could this possible? plz help
     
    Abid Ali, Aug 9, 2013 IP