php - SEO friendly URL not working using .htaccess -


i'm trying implement seo friendly url using .htaccess using rewriterule below

rewriterule ^n/article/([a-za-z0-9]+)/$ article.php?title=$1 

the actaul url looks this

http://localhost/n/article.php?title=this-is-the-first-news-article 

but want :

http://localohst/n/article/this-is-the-first-news-article 

when applied rewiterule above not change desired url

this should it. missing n. not sure why need word title though.

rewriterule ^n/article/title/([a-za-z0-9]+)/$ article.php?title=$1 

Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -