Re: Rewriting rule in .htaccess

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



if you use Macromedia Dreamweaver ? You can do is easy...

gangadhara prasad <ngprasad20@xxxxxxxxx> wrote:                               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
 
 Get your domain and website for less than Rs.100/month*. Go to http://in.business.yahoo.com/
 
 [Non-text portions of this message have been removed]
 
 
     
                               



                     \\|%|//
                     | ~ ~ |
                  ^( @ @ )^
         -----o000o-\_/-o000o----------
             Tharaka Sangeeth
Admin : Staveline.com | Galleline.net

       
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

[Non-text portions of this message have been removed]


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux