Ask questions via twitter! Message any question to @answers on twitter. We'll publish the question and send you a reply each time there's a new answer.
Next Question

Question

 
 M¢25  Funded By Mahalo ? |  July 09, 2009 04:51 PM

hi i am to change my .php files into .html using .htaccess me how to do it?

Interesting Question?  Yes (0)   No (0)   
Email to a friend | Email me answers to this question | RSS
 
 


Answers (1)

Sort By
 
July 16, 2009 01:12 AM
RewriteRule ^(.*)\.htm$ $1.php nc

The following example will rewrite the test.php to test.html i.e when a URL like http://localhost/test.htm is called in address bar it calls the file test.php. As you can see the regular expression in first part of the RewriteRule command and $1 represents the first regular expression of the part of the RewriteRule and nc means not case sensitive.
Source(s):
http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html


Tags: url, htaccess, php, html

Helpful Answer?  (0)   (0)    Tip kingkool68 for this answer
Permalink | Report
   Reply  
 
 
Buy Mahalo Dollars with Credit Card or PayPal

Top Members

This Week All Time
  • buddawiggi
    buddawiggi
    2nd Degree Black Belt
    27543 Points
    M$789.91 Earned
  • opher
    opher
    Purple Belt
    4443 Points
    M$196.22 Earned
  • annelisle
    annelisle
    Purple Belt
    2997 Points
    M$91.22 Earned
   See All
 

Most Popular Tags

mahalo(1618)
iphone(465)
music(461)
google(357)
food(321)
online(295)
beer(279)
money(262)
movies(256)
apple(251)
aotd(235)
health(219)
video(207)
free(205)
dog(205)
   See All
 

Categories

Welcome New Members


 
 
Mahalo Dollars are the currency of Mahalo Answers.

Each Mahalo Dollar costs $1.

Once you earn more than 40 Mahalo Dollars, you can request to be paid via PayPal. Each Mahalo Dollar is currently worth $0.75 when paid out via PayPal. Learn More

 
 

Please log in to use this function.