|
Posted by BootNic on 11/12/07 16:36
Ed Mullen <ed@edmullen.net> wrote:
news:e7-dnTeEvLNua6ranZ2dnUVZ_v6rnZ2d@comcast.com:
> Ed Mullen wrote:
>> Jonathan N. Little wrote:
[snip]
>>> Very simple example...
>>> .htaccess file
>>>
>>> RewriteEngine On
>>>
>>> RewriteRule ^(.*)\.html$ $1.php
>>>
>>
>> Excellent. Thank you all. I do have the ability to edit the
>> .htaccess file. I will go read more so as not to be quite as
>> dangerous as I am now.
>>
>
> Well, that was interesting.
>
> Using the above RewriteRule I did a test. And the only way it works
> is if I rename the calling .html file to .shtml. Which, obviously,
> defeats the purpose.
>
> Is this something that can configured/over-ridden using the .htaccess
> file? Or is it at the server configuration level (which I do not have
> access to)?
You could try to use RedirectMatch in your .htaccess:
RedirectMatch 301 (?i)^(.*)\.html(.*)$ $1.php$2
--
BootNic Monday November 12, 2007 11:36 AM
My problem lies in reconciling my gross habits with my net income.
*Errol Flynn*
Navigation:
[Reply to this message]
|