Version 2

FeaturePrettyUrlsExtended

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

Created by: James Thompson, Last modification: 09 Jul 2005 (03:24 UTC) by James Thompson
This feature is an extension of PrettyUrls. It adds an extra tag into the URLs to make them unambigious. Some links generated by PrettyUrls may not function as expected. For example, a link to the user page for the user 'admin' will not display correctly when PrettyUrls is enabled.

For User and Wiki links, this feature adds a '/view' tag into the generated URLs.

Normal URL:
{code()}
http://www.bitweaver.org/wiki/index.php?page=LDAPCompatibility
{code}

When PrettyUrls is enabled:
{code()}
http://www.bitweaver.org/wiki/LDAPCompatibility
{code}

When FeaturePrettyUrlsExtended is enabled:
{code()}
http://www.bitweaver.org/wiki/view/LDAPCompatibility
{code}

Enabling this feature will require manually editing the default .htaccess files.

The exact changes will depend on your web server configuration.

Example for wiki/.htaccess
{code()}
<ifmodule mod_rewrite.c="">
RewriteEngine on
  1. RewriteBase /wiki/
RewriteCond %{SCRIPT_FILENAME} -f OR
RewriteCond %{SCRIPT_FILENAME}/index.php -f
RewriteRule ^(.*)$ - L

RewriteRule view/(.*)$ index.php?page=$1 L
</ifmodule>
{code}

See Also



Page History
Date/CommentUserIPVersion
30 Jun 2008 (09:17 UTC)
Kozuch85.207.244.1605
Current • Source
KainX12.203.189.343
View • Compare • Difference • Source
James Thompson64.65.89.2272
View • Compare • Difference • Source