Changeset 2957 for branches

Show
Ignore:
Timestamp:
07/03/2008 02:41:03 AM (5 months ago)
Author:
Geert
Message:

A few tweaks to the website .htaccess

  • The RewriteRule? for trac(/?.*) did not make that much sense because adding an optional slash in the capturing group would be the same as leaving it out completely, as in trac(.*). Both would match anything anyway. Now the slash is required if anything follows "trac": trac(/.*)?$
  • Redirecting both http://kohanaphp.com/forums and http://kohanaphp.com/forum now
  • Also made "index.php" prepeding work using $0 which saves you a set of capturing parentheses
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/website/.htaccess

    r2934 r2957  
    22RewriteEngine on 
    33# Redirect to Trac 
    4 RewriteRule ^trac(/?.*) http://trac.kohanaphp.com$1 [R=301,L] 
     4RewriteRule ^trac(/.*)?$ http://trac.kohanaphp.com$1 [R=301,L] 
    55# Redirect to SVN 
    6 RewriteRule ^svn(/?.*) http://svn.kohanaphp.com$1 [R=301,L] 
     6RewriteRule ^svn(/.*)?$ http://svn.kohanaphp.com$1 [R=301,L] 
    77# Redirect to forum 
    8 RewriteRule ^forums(/?.*) http://forum.kohanaphp.com$1 [R=301,L] 
     8RewriteRule ^forums?(/.*)?$ http://forum.kohanaphp.com$1 [R=301,L] 
    99# Redirect to doc 
    10 RewriteRule ^user_guide(/?.*) http://doc.kohanaphp.com$1 [R=301,L] 
     10RewriteRule ^user_guide(/.*)?$ http://doc.kohanaphp.com$1 [R=301,L] 
    1111 
    1212# Installation directory 
     
    2525 
    2626# Rewrite all other URLs to index.php/URL 
    27 RewriteRule ^(.*)$ index.php/$1 [PT,L] 
     27RewriteRule .* index.php/$0 [PT,L]