Search Engine Optimization
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignSearch Engine Optimization

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 31st, 2004, 01:28 AM
nomix25 nomix25 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 17 nomix25 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 51 m 26 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old October 31st, 2004, 06:28 AM
PaulS PaulS is offline
Web bod
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Brighton, UK
Posts: 42 PaulS User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 34 sec
Reputation Power: 6
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.
__________________
Paul Silver - freelance web developer
http://www.paulsilver.co.uk

Reply With Quote
  #3  
Old November 4th, 2004, 07:30 PM
j@ckrabbit j@ckrabbit is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 2 j@ckrabbit User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 41 sec
Reputation Power: 0
if you are on someone else's server you still might be able to do that (parse .html as php) by using .htaccess files.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignSearch Engine Optimization > Conver All .php Pages To .html


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway