RewriteEngine On
RewriteRule ^([a-zA-Z0-9_-]+)$ example1.php?id1=$1
RewriteRule ^([a-zA-Z0-9_-]+)$ example2.php?id2=$1
RewriteRule ^([a-zA-Z0-9_-]+)$ example3.php?id3=$1
This code is redirecting all pages on example1.php
I want to redirect example1.php
on example1.php/title
Similar example2.php
on example2.php/title
again example3.php
on example3.php/title
Please guide me, how it is possible by htaccess
?
this problem will be solved by below syntax.
RewriteEngine On
RewriteRule ^([a-zA-Z0-9_-]+)$ example1.php?id1=$1
RewriteRule ^example2/([a-zA-Z0-9_-]+)$ example2.php?id2=$1
RewriteRule ^example3/([a-zA-Z0-9_-]+)$ example3.php?id3=$1
Thanks to all