APD Toronto
asked on
Codiing Non-Existent Links
Hi Experts
Can anyone tell me how are non-existent links are coded, in general, and in PHP?
By Non-Existent Links, I mean how EE does it for example:
https://www.experts-exchange.com/questions/28983605/Determining-Project-Cost.html
I do not think that there really is a 28983605 directory, and a Determining-Project-Cost.h tml static file, since these are created dynamically? In WordPress, they call it PermaLink.
Thank you
Can anyone tell me how are non-existent links are coded, in general, and in PHP?
By Non-Existent Links, I mean how EE does it for example:
https://www.experts-exchange.com/questions/28983605/Determining-Project-Cost.html
I do not think that there really is a 28983605 directory, and a Determining-Project-Cost.h
Thank you
My guess is that EE uses a similar concept to the WP PermaLink. All of the HTTP requests are routed through a single, central script (maybe through /questions/) where the original URL is identified and the page that contains /28983605/ is rendered for the browser. The part about /Determining-Project-Cost. html is SEO sugar, and is unnecessary to the request routing. This is not usually a PHP activity (except in WordPress) but is instead facilitated by .htaccess and the HTTP routing scheme of the web server.
ASKER
If I wanted to implement something like that, how would I?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.