Re: Apache Config Question About Redirection

  • From: "Michael Taboada \(AI5HF\)" <ai5hf@xxxxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Wed, 4 May 2011 15:52:19 -0500

My mistake, the second line  should read:
RewriteRule ^(.*)\.html$ http://yoursite.com/$1.php [R=301,NC]
Forgot you had to escape the period 

-Michael.

AI5HF

http://mtgames.org/
http://u4u.be/
http://michael-taboada.org/
http://AI5HF.org/
http://the-status.net/ and http://the-stat.us/

Skype: lilmike2
Gmail: ai5hf.lilmike@xxxxxxxxx
msn: ai5hf@xxxxxxxxxxx
Twitter: http://twitter.com/MWTab

PC details:
Intel quad core 2.66 ghz; 4 gb duel channel ddr2 ram; 1 TB harddrive.

"The songs of the dead are the lamentations of the living." -- Christopher 
Paolini, Eldest.
"A world that contained a creature as amazing as that bumblebee was a world he 
wanted to live in." -- Christopher Paolini, Brisingr.


From: Michael Taboada (AI5HF) 
Sent: Wednesday, May 04, 2011 3:41 PM
To: programmingblind@xxxxxxxxxxxxx 
Subject: Re: Apache Config Question About Redirection


You might try in .htaccess:
RewriteEngine On
RewriteRule ^(.*).html$ http://yoursite.com/$1.php [R=301,NC]
-Michael.

AI5HF

http://mtgames.org/
http://u4u.be/
http://michael-taboada.org/
http://AI5HF.org/
http://the-status.net/ and http://the-stat.us/

Skype: lilmike2
Gmail: ai5hf.lilmike@xxxxxxxxx
msn: ai5hf@xxxxxxxxxxx
Twitter: http://twitter.com/MWTab

PC details:
Intel quad core 2.66 ghz; 4 gb duel channel ddr2 ram; 1 TB harddrive.

"The songs of the dead are the lamentations of the living." -- Christopher 
Paolini, Eldest.
"A world that contained a creature as amazing as that bumblebee was a world he 
wanted to live in." -- Christopher Paolini, Brisingr.


From: Homme, James 
Sent: Wednesday, May 04, 2011 12:00 PM
To: programmingblind@xxxxxxxxxxxxx 
Subject: Apache Config Question About Redirection


Hi,

Does anyone know if Apache can look at an extension and serve up a web page 
with the same file root, but substitute another extension? For example, let's 
say that instead of static HTML pages, someone decides to create PHP pages from 
templates that have a bunch of includes that grab the old content. They could 
make the root names the same, and all the internal links would still work if 
Apache can translate the HTML extension to .php. Anyone from the outside would 
simply get redirected to the right page, but the page would be the new version.

 

Thanks.

 

Jim

 

Jim Homme,

Usability Services,

Phone: 412-544-1810.

 



--------------------------------------------------------------------------------
This e-mail and any attachments to it are confidential and are intended solely 
for use of the individual or entity to whom they are addressed. If you have 
received this e-mail in error, please notify the sender immediately and then 
delete it. If you are not the intended recipient, you must not keep, use, 
disclose, copy or distribute this e-mail without the author's prior permission. 
The views expressed in this e-mail message do not necessarily represent the 
views of Highmark Inc., its subsidiaries, or affiliates.

GIF image

Other related posts: