php - Friendly url implement wordpress style -


i need guidance friendly url, best way implement since. htaccess, handle php create links

if path is:

http://www.site.com/index.php?op=notice&id=34 convert http://www.site.com/notice/34/ or http://www.site.com/notice/the-best/

if have it. .htaccess:

rewriterule ^ ([a-za-z0-9-]+)/?$ index.php? op = $ 1 [l] 

from php generate right links. htaccess, enable slug. have wordpress, idea.

thank

you have make index.php shows right content depending on uri. how solved different case case.

wordpress have see if there's corresponding post or page, , if so, display content.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -