Eg:http://example.com/followers.php?id=techyganga
Rewriting URL
Eg:http://example.com/9lessons/followers
.htaccess Code
RewriteEngine On
RewriteRule ^([a-zA-Z0-9_-]+)/\followers$ followers.php?id=$1
RewriteRule ^([a-zA-Z0-9_-]+)/\following$ following.php?id=$1
RewriteRule ^([a-zA-Z0-9_-]+)/\followers$ followers.php?id=$1
RewriteRule ^([a-zA-Z0-9_-]+)/\following$ following.php?id=$1
0 Comments:
Post a Comment