dynamic link is http://localhost/hospital/hospital-name.php and mod-rewrite rule is RewriteEngine On RewriteRule ^hospital/(^/)\.php$ /hospital/index.php?url=$1 [nc,L] But this mod-rewrite is not working for the following condition, 1. index.php file takes hospital name (hospital-name) from the link and bulids dynamic page with the hospital name and displays it".(In reality, there is no page with the name 'hospital-name.php' which is there in the link, all the information to dynamic page is coming from database) 2. The link should not change in the browser when page with hospital name is displayed in the browser. Please help me to write mod-rewrite. And also wants to know, is it necessary to have web pages physical existence in the directory, to write redirecting rules for that directory