Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 3.0 support forum
 Helicon Tech : ISAPI_Rewrite 3.0 support forum
Subject Topic: Redirect all PHP pages Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
ap7256
Newbie
Newbie


Joined: 16 May 2008
Online Status: Offline
Posts: 5
Posted: 11 August 2008 at 11:48am | IP Logged Quote ap7256

Hello,

How do I redirect all .PHP pages to .ASP?

www.domain.com/index.php must be redirected to www.domain.com/index.asp

 

Thanks

Back to Top View ap7256's Profile Search for other posts by ap7256
 
Anton
Moderator Group
Moderator Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 4842
Posted: 12 August 2008 at 3:03am | IP Logged Quote Anton

Here's the rule:

RewriteRule ^(.+)\.php$ $1.asp [NC,R=301,L]


__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You can vote in polls in this forum