Hi,
I am new for using .htaccess file. Now I'm trying to get a friendly url using the htaccess file, as followed:
Code:
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^detail/id/(.*)/ detail.php?id=$1
RewriteRule ^detail/id/(.*) detail.php?id=$1
and upload it to "new" folder.
I expect to get an url like
http://www.myweb.com/new/detail/id/234 from the original url
http://www.myweb.com/new/detail.php?id=234. However, the .htaccess doesn't do anything.
Second, I finally able to upload to other server, but it just doesn't work.. I still see
http://www.myweb.com/detail.php?id=234 on url bar.
Could anyone help me with this?
thanks,
ayok