how create clean urls using htaccess

Hi i want to create clean urls but my htaccess file does not create any effect.

Original url – http://example.com/abc/def/?page=1

required url – http://example.com/abc/def/page/1

I am using following htaccess file. I want to place this file in the def directory

RewriteEngine On
RewriteRule ^([a-zA-Z0-9]+)$ page?id=$1
RewriteRule ^([a-zA-Z0-9]+)/$ page?id=$1


Source: apache

Leave a Reply