2015-04-02 16:52:46 +02:00
|
|
|
######################
|
|
|
|
# .htaccess example. #
|
|
|
|
######################
|
|
|
|
|
|
|
|
<IfModule mod_rewrite.c>
|
|
|
|
RewriteEngine On
|
|
|
|
RewriteCond %{REQUEST_FILENAME} -f [OR]
|
|
|
|
RewriteCond %{REQUEST_FILENAME} -d
|
2015-11-05 22:20:13 +01:00
|
|
|
RewriteRule . - [L]
|
2015-04-02 16:52:46 +02:00
|
|
|
|
2015-11-05 22:48:00 +01:00
|
|
|
RewriteRule ^([a-zA-Z0-9]{16})$ studs.php?poll=$1 [L]
|
2015-11-30 20:26:23 +01:00
|
|
|
RewriteRule ^([a-zA-Z0-9]{16})/action/([a-zA-Z_-]+)/(.+)$ studs.php?poll=$1&$2=$3
|
2015-11-05 22:20:13 +01:00
|
|
|
RewriteRule ^([a-zA-Z0-9]{16})/vote/([a-zA-Z0-9]{16})$ studs.php?poll=$1&vote=$2
|
2015-04-02 16:52:46 +02:00
|
|
|
RewriteRule ^([a-zA-Z0-9]{24})/admin$ adminstuds.php?poll=$1
|
2015-11-05 22:20:13 +01:00
|
|
|
RewriteRule ^([a-zA-Z0-9]{24})/admin/vote/([a-zA-Z0-9]{16})$ adminstuds.php?poll=$1&vote=$2
|
2015-11-30 20:26:23 +01:00
|
|
|
RewriteRule ^([a-zA-Z0-9]{24})/admin/action/([a-zA-Z_-]+)(/(.+))?$ adminstuds.php?poll=$1&$2=$4
|
2015-11-18 17:45:39 +01:00
|
|
|
</IfModule>
|