Year + Month in url?
2 posts by 2 authors in: Forums > CMS Builder
Last Post: July 19, 2012 (RSS)
By ILLUME-MEDIA-LABS - July 18, 2012 - edited: July 18, 2012
is there a way to dynamically create or add the year + month in the url?
alot of the news/magazine sites, as well as blogs, file their content by year and month. ie: http://www.domain.com/2012/07/conent.php
Thanks
alot of the news/magazine sites, as well as blogs, file their content by year and month. ie: http://www.domain.com/2012/07/conent.php
Thanks
Re: [Illume Magazine] Year + Month in url?
By Jason - July 19, 2012
Hi,
You could create the URL like this:
However, you'll need to have the .htaccess rules in place in order to direct this properly.
Hope this helps
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/
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/