Adssss

URL Rewriting (Complete Guide)

Original URL:
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

No comments