Jump to content

Permalink?


JayStabins

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.