I want to rewrite my url like wordpress,ie:http://www.mysite.com/2009/11/sample-post/. How can i pass the article's title to url? How to do with .htaccess file?
this would be the htaccess to capture the url: RewriteEngine On RewriteRule ^([^/]*)/([^/]*)/([^/]*)$ /?year=$1&month=$2&title=$3 [L] Code (markup): to generate the urls you have to modify your blog/web/w/e to do something like this: <?php echo "<a href='http://example.com/$var_year/$var_month/$var_title'>$var_title</a>"; ?> PHP: just an example, it depends on what software you use