root/tags/1.0.2/.htaccess

Revision 1603, 0.8 KB (checked in by jeena, 2 years ago)

slash from categoriy url removed

Line 
1<IfModule mod_rewrite.c>
2  RewriteEngine On
3
4  # catches all cathegories
5  RewriteCond %{REQUEST_FILENAME} !-f
6  RewriteCond %{REQUEST_FILENAME} !-d
7  RewriteRule "^cat/([a-z0-9_\-\.,]+)/?([0-9]{0,4})/?$" archive.php?cat=$1&y=$2 [QSA]
8
9  # catches all archive links, month and year
10  RewriteRule "^archive$" archive.php [QSA]
11  RewriteCond %{REQUEST_FILENAME} !-f
12  RewriteCond %{REQUEST_FILENAME} !-d
13  RewriteRule "^([0-9]{4})/?([0-9]{0,2})/?$" archive.php?y=$1&m=$2 [QSA]
14
15  # cathes all permalinks
16  RewriteCond %{REQUEST_FILENAME} !-f
17  RewriteCond %{REQUEST_FILENAME} !-d
18  RewriteRule "^([0-9]{4})/?([0-9]{2})/?([a-z0-9_\-\./,]+)$" log.php?y=$1&m=$2&url=$3 [QSA]
19
20  # catches all pages
21  RewriteCond %{REQUEST_FILENAME} !-f
22  RewriteCond %{REQUEST_FILENAME} !-d
23  RewriteRule "^([a-z0-9_\-\./,]+)$" page.php?url=$1 [QSA]
24</IfModule>
Note: See TracBrowser for help on using the browser.