Hi, Thanks for your reply. I have changed code like
Options +FollowSymlinks RewriteEngine on RewriteRule http://localhost/test/test-([0-9]+)\.html$ test.php?id=$1 But it is not working. ----- Original Message ---- From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> To: [email protected] Sent: Saturday, 23 February, 2008 8:42:27 AM Subject: Re: [php-list] Rewriting rule in .htaccess ----- Original Message ----- From: "Gangadhara Prasad" Hi All, I am rewriting rule in .htaccess file.I need to convert all .php files with .html extension. Ex: http://localhost/ test/test. php to http://localhost/ test/test. html http://localhost/ test/test. php?id=1 to http://localhost/ test/test- 1.html My code is Options +FollowSymlinks RewriteEngine on RewriteRule ^test-([0-9] +)\.html$ test.php?id= $1 if i enter this url in browser "http://localhost/ test/test. php?id=1" i need to show this one in browser "http://localhost/ test/test- 1.html ".But my code is displaying this one only "http://localhost/ test/test. php?id=1" Can you please help me where can i change my code. Thanks, Gangadhar ------------ --------- -------- Hi, The request URL is the full URL ie - http://localhost/ test/test- 1.html and not simply test-1.html so take out the start of string expression '^' Unlimited freedom, unlimited storage. Get it now, on http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/ [Non-text portions of this message have been removed]
