kks_krishna Posted October 27, 2007 Share Posted October 27, 2007 HI, I have the following urls: http://www.sitename.com/articles/2007/10/articles-name/ http://www.sitename.com/articles/2007/10/articles-name/2 http://www.sitename.com/articles/2007/10/articles-name/3 ..... I want to get the url pattern like this for all the above string: http://www.sitename.com/articles/2007/10/article-name.html This i need for displaying whole article for print option. How can i do that? Quote Link to comment https://forums.phpfreaks.com/topic/74959-help-need-on-string-manipulation/ Share on other sites More sharing options...
marcus Posted October 27, 2007 Share Posted October 27, 2007 Er. Mod rewrite? RewriteEngine On RewriteRule ^articles/([^*]*)/([^*]*)/([^*]*)-([^*]*)\.html$ /articles.php?year=$1&month=$2&article=$3&page=$4 [L] Quote Link to comment https://forums.phpfreaks.com/topic/74959-help-need-on-string-manipulation/#findComment-379048 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.