Htaccess File

kazimsarikaya/simpleblog/master/.htaccess

REQUEST_URI
RewriteEngine On
RewriteBase /~srkykzm/

RewriteRule  "^admin(/)?$"  index.php/admin [L]

RewriteRule  "^categories(/[a-z-]+)?"  index.php/categories?cat=$1 [L]
RewriteRule     "^tags(/[a-z-]+)?"       index.php/tags?tag=$1 [L]

RewriteRule  "([0-9]{4})/([0-9]{2})/([a-z-]+)(/)?"  index.php/post?year=$1&month=$2&post=$3 [L]

RewriteRule  "(.*).html$"  index.php/page?id=$1 [L]
RewriteRule  "^ws/([a-z_.]+)"  index.php/ws?command=$1 [QSA,L]

RewriteCond  %{REQUEST_URI} !^/~srkykzm/$
RewriteCond  %{REQUEST_URI} !^/~srkykzm/index.php
RewriteCond     %{REQUEST_URI} !^/~srkykzm/css
RewriteCond     %{REQUEST_URI} !^/~srkykzm/js
RewriteRule  (.*)  - [R=404,L]
Exit mobile version