How can I change the link: http: //localhost/blog/read_more.php? Article = 3

To the link: http: // localhost / blog / article = 3

Ie hide part: read_more.php?

Thank you in advance!

    2 answers 2

    RewriteRule ^blog/article=([0-9]+)$ /blog/read_more.php?article=$1 [L] 

    the L parameter indicates that the following rules will not work if this works.

      Here's a wizard for you))): http://www.generateit.net/mod-rewrite/index.php

      Write a real url then, what you want further everything is ready you can click on the link you wanted to see.

      • I just used http://site.ru/page/2 myself and it’s 500 that apach needs to be set up, and if you do http://site.ru/page-2 with a bang , Sauron