Htaccess File

XKY/grboard2/master/.htaccess

REQUEST_FILENAME
<IfModule mod_rewrite.c>
RewriteBase /grboard2
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f

RewriteRule ^([a-zA-Z0-9]+)$ index.php?module=$1&action=list&page=1
RewriteRule ^([a-zA-Z0-9]+)/([a-zA-Z0-9_]+)$ index.php?module=$1&action=$2
RewriteRule ^([a-zA-Z0-9]+)/([a-zA-Z0-9_]+)/([a-zA-Z]+)$ index.php?module=$1&action=$2&$3
RewriteRule ^([a-zA-Z0-9]+)/([a-zA-Z0-9_]+)/([0-9]+)$ index.php?module=$1&action=$2&articleNo=$3&target=$3&page=$3
RewriteRule ^([a-zA-Z0-9]+)/([a-zA-Z0-9_]+)/([a-zA-Z0-9]+)/([a-zA-Z0-9_]+)$ index.php?module=$1&action=$2&$3=$4

RewriteRule ^([a-zA-Z0-9]+)(-)([a-zA-Z0-9_]+)/([a-zA-Z0-9]+)$ index.php?module=$1&id=$3&action=$4
RewriteRule ^([a-zA-Z0-9]+)(-)([a-zA-Z0-9_]+)/([a-zA-Z0-9]+)/([0-9]+)$ index.php?module=$1&id=$3&action=$4&page=$5&articleNo=$5&commentNo=$5
RewriteRule ^([a-zA-Z0-9]+)(-)([a-zA-Z0-9_]+)/([a-zA-Z0-9]+)/([a-zA-Z]+)/([0-9]+)$ index.php?module=$1&id=$3&action=$4&$5=$6
RewriteRule ^([a-zA-Z0-9]+)(-)([a-zA-Z0-9_]+)/([a-zA-Z0-9]+)/([a-zA-Z]+)/(.+)/([0-9]+)$ index.php?module=$1&id=$3&action=$4&option=$5&value=$6&page=$7
</IfModule>
Exit mobile version