JayStabins Posted October 30, 2013 Share Posted October 30, 2013 Does anyone have a resource to help explain permalinks? Basically I am wondering how to implement something on the blog I am starting to write. Take this link for example.... http://cristinabarkerjones.wordpress.com/2013/07/18/10-reasons-you-should-get-a-dog/ (this is just some random blog I pulled up, no plug or try to get hits here) I think we can agree there is no html/php page sitting on a server in a folder /2013/07/18/ with a page name of 10-reasons-you-should-get-a-dog. Instead there is a server that s going to render this page who's data is sitting in a database. My question is how do you implement something like this. I know it is an involved process, just looking if someone has a resource on how this is implemented or wants to give me a quick overview that would be great! Thanks! Link to comment https://forums.phpfreaks.com/topic/283450-permalink/ Share on other sites More sharing options...
Zane Posted October 30, 2013 Share Posted October 30, 2013 Here is an excellent tutorial on exactly what you're looking for. http://net.tutsplus.com/tutorials/other/a-deeper-look-at-mod_rewrite-for-apache/ Link to comment https://forums.phpfreaks.com/topic/283450-permalink/#findComment-1456273 Share on other sites More sharing options...
.josh Posted October 31, 2013 Share Posted October 31, 2013 alternatively, the keywords you can search for are "url beautification" or "seo friendly urls" Link to comment https://forums.phpfreaks.com/topic/283450-permalink/#findComment-1456279 Share on other sites More sharing options...
JayStabins Posted October 31, 2013 Author Share Posted October 31, 2013 Perfect! Thanks Link to comment https://forums.phpfreaks.com/topic/283450-permalink/#findComment-1456282 Share on other sites More sharing options...
JayStabins Posted October 31, 2013 Author Share Posted October 31, 2013 Much better than the apache documentation. http://httpd.apache.org/docs/current/mod/mod_rewrite.html While reading this I was wondering about the difference between the mod_rewrite # Generic 404 to show the "custom_404.html" page # If the requested page is not a file or directory # Silent Redirect: the user's URL bar is unchanged. RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule .* custom_404.html [L] and the simple ErrorDocument 404 /404error.php Thanks again for the help! Link to comment https://forums.phpfreaks.com/topic/283450-permalink/#findComment-1456306 Share on other sites More sharing options...
.josh Posted October 31, 2013 Share Posted October 31, 2013 It's essentially the same thing. Both are apache redirect rules. The latter is just more of a convenience since handling certain response types is common. Link to comment https://forums.phpfreaks.com/topic/283450-permalink/#findComment-1456355 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.