DEV Community

Discussion on: URL Rewriting

Collapse
 
vlasales profile image
Vlastimil Pospichal

Yes, when URL is example.com/post/12 , redirect it to index.php without rewriting. The script get this string from $_SERVER['REQUEST_URI'] and parse it with function parse_url(). The component 'path' I parse with explode(). That's all.

Thread Thread
 
billy_de_cartel profile image
Billy Okeyo

Let me try it then i share the feedback