Htaccess File

hexC0D3/Grades_v2.0/master/htdocs/api/.htaccess

REQUEST_FILENAME
<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /api/
  
  RewriteCond %{REQUEST_FILENAME} !-f
  
  
  RewriteRule ^([[a-zA-Z0-9-=&_@.]+)$ index.php?version=$1
  RewriteRule ^([a-zA-Z0-9-=&_@.]+)/$ index.php?version=$1
  
  RewriteRule ^([a-zA-Z0-9-=&_@.]+)/([a-zA-Z0-9-=&_@.]+)$ index.php?version=$1&type=$2
  RewriteRule ^([a-zA-Z0-9-=&_@.]+)/([a-zA-Z0-9-=&_@.]+)/$ index.php?version=$1&type=$2
  
  RewriteRule ^([a-zA-Z0-9-=&_@.]+)/([a-zA-Z0-9-=&_@.]+)/([a-zA-Z0-9-=&_@.]+)$ index.php?version=$1&type=$2&id=$3
  RewriteRule ^([a-zA-Z0-9-=&_@.]+)/([a-zA-Z0-9-=&_@.]+)/([a-zA-Z0-9-=&_@.]+)/$ index.php?version=$1&type=$2&id=$3
  
  RewriteRule ^([a-zA-Z0-9-=&_@.]+)/([a-zA-Z0-9-=&_@.]+)/([a-zA-Z0-9-=&_@.]+)/([a-zA-Z0-9-=&_@.]+)$ index.php?version=$1&type=$2&id=$3&action=$4
  RewriteRule ^([a-zA-Z0-9-=&_@.]+)/([a-zA-Z0-9-=&_@.]+)/([a-zA-Z0-9-=&_@.]+)/([a-zA-Z0-9-=&_@.]+)/$ index.php?version=$1&type=$2&id=$3&action=$4
  
</IfModule>
Exit mobile version