Can someone help me please to create a .htacces rule for my site? I need to transform this: http://www.mysite.com/index.php?page=about_us Into this: http://www.mysite.com/about_us.html and this http://www.mysite.com/index.php?page=services into this http://www.mysite.com/services.html and so on...
Let me Google that for you Options +FollowSymLinks RewriteEngine on RewriteRule (.*)\.html index.php?page=$1 Code (markup):
thanks for your comments... i just want to know the steps to pass php variable in .htaccess.. for instance http://www.mysite.com/index.php?pageid=12 in index.php $pageTitle = 'About'; how to use the hidden php variable in .htaccess http://www.mysite.com/about-us