views:

9

answers:

1

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

A: 
RewriteRule ^\/get_post\/(.*)$ get_post.php?slug=$1 [L]
Funky Dude
@Funky Dude:Thank you for the reply. It doesn't work either.
Yc Zhang