Hi, I need some url rewriting help. My site is in php and uses mysql database to retrieve content on site pages. destination url is top/b_services.php pattern is info/b_services_information.htm How can I rewrite ? I mean to ask if info/b_services_information.htm is called in the browser it should display content from top/b_services.php any help would be greatly appreciated.
Something like this should work: RewriteEngine on RewriteBase / RewriteRule ^info/([a-zA-Z_]+)_information.htm$ top/$1.php [NC,L] Code (markup):
The code has to be putted on a .htaccess named file and uploaded to your server, not on your PHP File !