Year + Month in url?

2 posts by 2 authors in: Forums > CMS Builder
Last Post: July 19, 2012   (RSS)

Re: [Illume Magazine] Year + Month in url?

By Jason - July 19, 2012

Hi,

You could create the URL like this:

<a href = "http://www.domain.com/<?php echo date("Y", strtotime($record['createdDate']));?>/<?php echo date("m", strtotime($record['createdDate']));?>/content.php">

However, you'll need to have the .htaccess rules in place in order to direct this properly.

Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/