SEO Scripts
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   SEO Chat ForumsOtherSEO Scripts

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 SEO Chat Forums Sponsor:
  #1  
Old April 21st, 2008, 12:55 AM
pro_seo's Avatar
pro_seo pro_seo is offline
Moderator
SEO Chat Frequenter (2500 - 2999 posts)
 
Join Date: Apr 2006
Location: I N D I A
Posts: 2,862 pro_seo User rank is Sergeant Major (2000 - 5000 Reputation Level)pro_seo User rank is Sergeant Major (2000 - 5000 Reputation Level)pro_seo User rank is Sergeant Major (2000 - 5000 Reputation Level)pro_seo User rank is Sergeant Major (2000 - 5000 Reputation Level)pro_seo User rank is Sergeant Major (2000 - 5000 Reputation Level)pro_seo User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Month 3 Weeks 3 Days 16 h 35 m 27 sec
Reputation Power: 36
Send a message via AIM to pro_seo Send a message via MSN to pro_seo Send a message via Yahoo to pro_seo Send a message via Google Talk to pro_seo Send a message via Skype to pro_seo
Exclamation Redirecting .htm pages to .php

Friends,

Recently a site of mine underwent an overhaul and all the .htm pages were rebuilt in .php

So the extension of the pages changed from .htm to .php and now I want to set up a rule in the htaccess to redirect requests for an old htm page to its corresponding new php page.

As of now, I've entered this code

Quote:
RewriteBase /
RewriteRule (.*).htm$ /$1.php


..and pages of both the versions are now visible [htm and php] instead of a redirection.

I want to set up a redirect through which a request for www.domain.com/filename.htm is redirected to www.domain.com/filename.php

Let me know how to do this.

Thanks!
__________________

SEO FAQs - You might find your answer here.
SEOchat Forum Rules - Read Before You Post


**Do what you feel in your heart to be right- for you'll be criticized anyway. You'll be damned if you do, and damned if you don't.**

Reply With Quote
  #2  
Old April 21st, 2008, 12:51 PM
morph's Avatar
morph morph is offline
Im a SPAM!
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Sep 2007
Posts: 73 morph User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 1 h 8 m 13 sec
Reputation Power: 2
im not sure if this article might help you...might give some ideas..
http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html

Reply With Quote
  #3  
Old April 23rd, 2008, 03:04 AM
sandip250382 sandip250382 is offline
Contributing User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Sep 2007
Posts: 70 sandip250382 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 8 h 1 m 25 sec
Reputation Power: 0
Quote:
Originally Posted by pro_seo
Friends,

Recently a site of mine underwent an overhaul and all the .htm pages were rebuilt in .php

So the extension of the pages changed from .htm to .php and now I want to set up a rule in the htaccess to redirect requests for an old htm page to its corresponding new php page.

As of now, I've entered this code



..and pages of both the versions are now visible [htm and php] instead of a redirection.

I want to set up a redirect through which a request for www.domain.com/filename.htm is redirected to www.domain.com/filename.php

Let me know how to do this.

Thanks!

You can find this thread located at http://www.webmasterworld.com/forum88/5215.htm useful for you.Good luck
__________________
Live for today

Reply With Quote
Reply

Viewing: SEO Chat ForumsOtherSEO Scripts > Redirecting .htm pages to .php


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
Stay green...Green IT