structure - How to tidy up urls -
do have tips on how create more readable links pages?
i not know correct term is, wordpress have feature called permalink, tidy url more readable (eg. http://example.com/2012/post-name/).
what looking not have same technique 1 wordpress use.
or simple solution old directory structure?
thank you!
you've got use mod_rewrite. if using paid hosting service, chances have enabled in apache. if not, there lots of tutorials on building it.
now plan how want urls like. example, want turn http://yoursite.com/tutorials.php?req=tutorial&id=3&page=0 http://yoursite.com/tutorials/3/0.php
open or create .htaccess file , add like
rewriteengine on rewriterule ^tutorials/(.*)/(.*).php /tutorials.php?req=tutorial&tut_id=$1&page=$2 note pattern: (.*) variables, such $1 placed, in order.
source , more information: http://www.devshed.com
Comments
Post a Comment