iarp Posted April 23, 2008 Share Posted April 23, 2008 Hey, If you've used wordpress, when it's first installed it usually shows posts like www.domain.com/?p=123. Theres an option they called Permalinks that allow you to have it like www.domain.com/day/month/year/post-name, or many different configurations. What is this option called? i'm trying to look it up on Google but don't even know where to start looking for a name. EDIT: For some reason i think it's something called php rewrite... i can't remember though. Quote Link to comment https://forums.phpfreaks.com/topic/102447-solved-p123-versus-daymonthyearpost-name/ Share on other sites More sharing options...
mrdamien Posted April 23, 2008 Share Posted April 23, 2008 Wordpress uses .htaccess files with mod_rewrite to redirect each of the /day/month/years/ to a separate variable. Tutorial: http://www.sitepoint.com/article/guide-url-rewriting Extra: http://corz.org/serv/tricks/htaccess2.php Quote Link to comment https://forums.phpfreaks.com/topic/102447-solved-p123-versus-daymonthyearpost-name/#findComment-524612 Share on other sites More sharing options...
Fadion Posted April 23, 2008 Share Posted April 23, 2008 Didnt look at the guides provided by mrdamien (im sure they're good ones), but im giving a link to the short but concise guide that helped me learn how to use htaccess when i didnt know anything about it. Click here for the guide. Good luck. Quote Link to comment https://forums.phpfreaks.com/topic/102447-solved-p123-versus-daymonthyearpost-name/#findComment-524617 Share on other sites More sharing options...
mrdamien Posted April 23, 2008 Share Posted April 23, 2008 Didnt look at the guides provided by mrdamien (im sure they're good ones), but im giving a link to the short but concise guide that helped me learn how to use htaccess when i didnt know anything about it. Click here for the guide. Good luck. Yeah that tutorial looks much more concise. I just googled for a few. Quote Link to comment https://forums.phpfreaks.com/topic/102447-solved-p123-versus-daymonthyearpost-name/#findComment-524620 Share on other sites More sharing options...
iarp Posted April 23, 2008 Author Share Posted April 23, 2008 Thanks guys. i was close mod_rewrite.. Quote Link to comment https://forums.phpfreaks.com/topic/102447-solved-p123-versus-daymonthyearpost-name/#findComment-524621 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.