selecterskyphp/ssyhn/master/.htaccess - Htaccess File

selecterskyphp/ssyhn/master/.htaccess

<IfModule mod_rewrite.c>
  Options +FollowSymlinks
  RewriteEngine On

  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  #RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]

  RewriteRule ^Article/show/id/(d{1,}).html$ /index.php?a=show&m=Article&id=$1 [QSA,PT,L]
  RewriteRule ^Article/(d{1,}).html$ /index.php?a=show&m=Article&id=$1 [QSA,PT,L]
  RewriteRule ^Article/index/id/(d{1,}).html$ /index.php?a=index&m=Article&id=$1 [QSA,PT,L]
  RewriteRule ^Page/index/id/(d{1,}).html$ /index.php?a=index&m=Page&id=$1 [QSA,PT,L]
  RewriteRule ^Product/index/id/(d{1,}).html$ /index.php?a=index&m=Product&id=$1 [QSA,PT,L]
  RewriteRule ^Product/show/id/(d{1,}).html$ /index.php?a=show&m=Product&id=$1 [QSA,PT,L]
  RewriteRule ^Product/(d{1,}).html$ /index.php?a=show&m=Product&id=$1 [QSA,PT,L]
  RewriteRule ^Guestbook/index/id/(d{1,}).html$ /index.php?a=index&m=Guestbook&id=$1 [QSA,PT,L]
  RewriteRule ^Index/index.html$ /index.php?a=index&m=Index [QSA,PT,L]
</IfModule>

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME

Comments

Apache