You are here: Re: PHP include and changing page names « HTML « IT news, forums, messages
Re: PHP include and changing page names

Posted by Jonathan N. Little on 11/12/07 17:11

BootNic wrote:
> "Jonathan N. Little" <lws4art@centralva.net> wrote: news:a9063$4738827b
> $40cba7a5$12517@NAXS.COM:
>
>> BootNic wrote:
>>
>>> You could try to use RedirectMatch in your .htaccess:
>>>
>>> RedirectMatch 301 (?i)^(.*)\.html(.*)$ $1.php$2
>> What is this part? ^^^^
>
> (?i) is case-insensitive matching
>


Ah! Unfamiliar with that one. But what good would case-insensitive
matching do when you are passing the basename through? Somefile.php
SomeFile.php, and SOMEFILE.php won't works if the file name is somefile.php

I would think case-insensitive matching would be useful is you are not
parsing the name

RedirectMatch 301 (?i)^THISFILE.HTML$ thatfile.php

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация