1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

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