[support] Getting rid of ".html" suffix in URL?

Metzler, David metzlerd at evergreen.edu
Thu May 1 15:04:02 UTC 2008


Aonther idea - use the path module to create an alias to car.html to
point to the node/path that you need IT won't do it for all, but it
should get you out of your current jam. 

Dave

-----Original Message-----
From: support-bounces at drupal.org [mailto:support-bounces at drupal.org] On
Behalf Of Craig Jackson
Sent: Thursday, May 01, 2008 8:01 AM
To: support at drupal.org
Subject: Re: [support] Getting rid of ".html" suffix in URL?

Apache???
Do not place this into a live site, I have not tested it. I am just
thinking out loud, but what about something like this?

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*).html$ $1

Craig Jackson

On Thu, May 1, 2008 at 8:55 AM, Roy Smith <roy at panix.com> wrote:
> I gave a URL for a page on my site (http://hyc.org/directions/car) to
>  somebody to publish in their newsletter.  They apparently decided
they
>  knew better, and "corrected" the URL to have a ".html" on the end,
>  i.e. published "http://hyc.org/directions/car.html".  Now they call
me
>  up saying their members can't get to our web site.
>
>  Is there any way to make drupal treat the .html URL as an alias for
>  the correct one?  More generally, is there a way to make it do so for
>  *all* URLs that end in .html?
>
>  --
>  roy at panix.com
>
>  --
>  [ Drupal support list | http://lists.drupal.org/ ]
>
-- 
[ Drupal support list | http://lists.drupal.org/ ]


More information about the support mailing list