Hi Guys, I am developing a custom made CMS. I would like to know how to make SEF URL like Wordpress? for now it is like this: www.domain.com/page.php?id=12&category&id=12. i want to make like this: www.domain.com/categorytitle.html thanks.
You need to use mod rewrite for that, you can get more information here: http://www.google.co.uk/search?sourceid=chrome&ie=UTF-8&q=mod+rewrite Thanks, Glen
For my custom CMS I use something like this: .htaccess file Options +FollowSymlinks All -Indexes RewriteBase / RewriteRule ^([a-z]+)/(.*) index.php?co=$1&op=$2 [NC] Code (markup): Practically I divide the string in two parts, the first one that I will call here co - command and a second one that I will call op - option, the two separated by a slash so I will have http://mydomain.com/command/option or http://mydomain.com/blog/title-alias Now the PHP part of it PHP $command = strip_tags($_GET['co']); // this will be the command $option = strip_tags($_GET['op']); // this will be the option Code (markup): Useless to tell you that now the choice is your on how to manage the datas acquired. hope it will help