History of PrettyUrls

Version 6

PrettyUrls

Use of URL rewriting (mod_rewrite) to generate cleaner site URL's

Created by: James Thompson, Last modification: 09 Jul 2005 (03:08 UTC) by James Thompson
PrettyUrls use the Apache webserver's mod_rewrite module to handle URL rewriting to convert browser references such as
http://www.example.com/blogs/1
to web server references such as
http://www.example.com/blogs/index.php?post_id=1

So far Blogs, Wiki, Fisheye and Users have had code added to handle the checkbox for PrettyUrls in Admin -> Features

mod_rewrite comes as part of apache by default and has to be enabled in your httpd.conf file:
{code()}
<directory />
Options FollowSymLinks
AllowOverride None

{code}
goes to
{code()}
<directory />
Options FollowSymLinks
AllowOverride All

{code}

this should be done for the / dir and your html dir such as /var/www/

Note:
Depending on your web server configuration, the default supplied .htaccess files may not work. One thing to try is to comment out the "RewriteBase" line in the file. For example:

{code()}
RewriteBase /wiki/
{code}
goes to
{code()}
  1. RewriteBase /wiki/
{code}

See Also:


Page History
Date/CommentUserIPVersion
30 Jun 2008 (09:17 UTC)
Kozuch85.207.244.16010
Current • Source
mlpvolt69.195.4.528
View • Compare • Difference • Source
KainX12.203.189.347
View • Compare • Difference • Source
James Thompson64.65.89.2276
View • Compare • Difference • Source
xing194.152.164.454
View • Compare • Difference • Source
SEWilco207.195.192.93
View • Compare • Difference • Source
spiderr66.93.240.2042
View • Compare • Difference • Source