|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Conver All .php Pages To .html
Hello,
I have hundreds of .php pages in one folder. Like page1.php, page2.php, .... page9000.php etc I want to use mode rewrite for windows "ISAPI Mod ReWrite" to convert all pages too .html extention Like page1.php can be shown as page1.html One way is i can use following command RewriteRule /folder/page1.html /folder/page1.php But in this case i need to set thousands of entries. Is there any generic way and one line command that can help. I tried this one but its not working RewriteRule /folder/(.*)\.html /folder/(.*)\.php Just in simple If i type http://www.domainname.com/folder/page1.html Then it call http://www.domainname.com/folder/page1.php And so and so. Nauman Ahmed |
|
#2
|
|||
|
|||
|
Just out of interest, but why are you doing this? It won't make any difference to those pages being spidered or the rank that they get.
As an aside, it is possible to set up PHP so all .html pages get parsed as if they were .php pages, so you could rename all your files to .html and get what you want. If you are on someone else's server they may not be willing to make that change though. |
|
#3
|
|||
|
|||
|
if you are on someone else's server you still might be able to do that (parse .html as php) by using .htaccess files.
|
![]() |
| Viewing: Dev Shed Forums > Web Design > Search Engine Optimization > Conver All .php Pages To .html |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|