In file .htaccess
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^\/*get_post\/(.*)$ get_post.php?slug=$0 [L]
</IfModule>
If I type http://example.com/get_post/abcde, I get an empty array of $_GET variable.
How can I achieve the effect like this: http://example.com/get_post?slug=abcde