Forum Moderators: phranque
I used mod rewrite to make my dynamic links to static directory link. My dynamic links was like this -
[mysite.com...]
it takes querysting variable category to generate output on books.php page
Now static dynamic link is - [mysite.com...]
Now i am in confucion how to trape vaue of category variabel in books.php to generate output? becz in urls there is no query string is embeded.
will it be like in book.php to trape category value -
<? $category = $_GET[0] ;?>
Please help.
My .htaccess code is -
------------------------------
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^bookinfo/([^/]+)/([^/]+)/?$ /bookinfo.php?$1=$2 [L]
RewriteRule ^books/([^/]+)/([^/]+)/?$ /books.php?$1=$2 [L]
------------------------------
is it ok.
Current dynamic url is -----
[mysite.com...] networking
[mysite.com...]
And i wrote this url to get this url----
[mysite.com...] networking/
[mysite.com...]
So according to this is my .htaccess code is ok?