httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Kew <n...@webthing.com>
Subject Re: [users@httpd] Rewriting URLs to remove .html extension
Date Wed, 15 Oct 2008 18:30:30 GMT

On 15 Oct 2008, at 17:29, Fran├žois Beausoleil wrote:

> Hi all!
>
> I moved my blog from a CMS to plain files.  My old links are of the  
> form:
>
> http://blog.teksol.info/tags/unit-testing
>
> All files are now stored with a .html extension, such that
>
> %{DOCUMENT_ROOT}/tags/unit-testing.html
>
> is an existing file.

Stop right there, and read about multiviews!

> The URL Rewriting Guide's Canonical URLs example is also similar to  
> this.

As in so many cases, anything involving mod_rewrite is unnecessarily  
complex.

-- 
Nick Kew
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message