[WebDNA] Re: [OT] - .php to .html redirect in .htaccess
This WebDNA talk-list message is from 2009
It keeps the original formatting.
numero = 101954
interpreted = N
texte = Nevermind. Got it.Options +IndexesOptions +FollowSymLinksRewriteEngine onRewriteBase /RewriteRule ^(.*)\.php$ $1.html [R=3D301,L]-DanOn Sun, 08 Feb 2009 13:53:19 -0800 "Dan Strong"
wrote:> Anybody know off the top of their head how to do this? I have about 150=+ files which used to be=20>called whatever.php which have now been changed to whatever.html. When o=ld search engine links=20>and bookmarks go to whatever.php they will now get a 404 of course. I wa=nt them to be 301=20>redirected to whatever.php instead.>=20> I know how to do this on a "1-to-1" basis:>=20> -------------------> RewriteEngine On> Redirect 301 whatever.php whatever.html> ------------------->=20> I could even do a [listfiles] to write the .htaccess file for me, but I= don't want to have to do=20>it 150 times... I know there's a simple way to do it. I am googling now,= but if anybody knows and=20>wants to share, I thank you in advace.> -Dan>=20
Associated Messages, from the most recent to the oldest:
Nevermind. Got it.Options +IndexesOptions +FollowSymLinksRewriteEngine onRewriteBase /RewriteRule ^(.*)\.php$ $1.html [R=3D301,L]-DanOn Sun, 08 Feb 2009 13:53:19 -0800 "Dan Strong" wrote:> Anybody know off the top of their head how to do this? I have about 150=+ files which used to be=20>called whatever.php which have now been changed to whatever.html. When o=ld search engine links=20>and bookmarks go to whatever.php they will now get a 404 of course. I wa=nt them to be 301=20>redirected to whatever.php instead.>=20> I know how to do this on a "1-to-1" basis:>=20> -------------------> RewriteEngine On> Redirect 301 whatever.php whatever.html> ------------------->=20> I could even do a [listfiles] to write the .htaccess file for me, but I= don't want to have to do=20>it 150 times... I know there's a simple way to do it. I am googling now,= but if anybody knows and=20>wants to share, I thank you in advace.> -Dan>=20
"Dan Strong"
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
calculating tax rates, mail order solutions and version 2 (1997)
Cannot calculate prices (1997)
Why don't my carts expire (1998)
Just Testing (1997)
if else problem (2003)
Adding up weights (1998)
Associative lookup style? + bit more (1997)
Shownext never shows next...still (1997)
Date search bug (1998)
PIXO (1997)
Search returns all, not 20 (1997)
Date format problems (1997)
WebCat virtual postcard is done! Thanks for the help! (1998)
[SearchString] usage (1997)
Quotes inside alt tags (2008)
emailer w/F2 (1997)
.. more on sliding discounts... (1997)
RE: Nested [SEARCH] and [REPLACE] problem. (1997)
Multi-processor Mac info ... (1997)
ANother SHOWIF problem (1997)