Created
February 20, 2023 03:08
-
-
Save Max95Cohen/5047c27c8b9c9980446ad45cfa11cbcb to your computer and use it in GitHub Desktop.
.htaccess CMS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# QueryString алып тыстау керек. ?a=b | |
Route::path() - Route::any('/system/users/:operation/:ID', 'system'); "/system/users" деген жолды алып береді. | |
RewriteCond %{REQUEST_URI} !-d | |
RewriteRule ^(.*/\w+[^/])$ /$1/ [L,R] | |
RewriteCond %{REQUEST_URI} ^/system[^.] | |
RewriteRule ^(.*)$ index.php?$1 [END,QSA] | |
RewriteCond %{REQUEST_URI} ^/$ | |
RewriteRule ^(.*)$ /kz/ [R,END] | |
RewriteCond %{REQUEST_URI} ^/([a-zA-Z0-9-_]+)\.(css|gif|ico|jpe?g|js|png|woff?2)$ [NC] | |
RewriteRule ^(.*)$ /public/%2/%1.%2 [END] | |
RewriteCond %{REQUEST_URI} !\.(css|gif|ico|jpe?g|js|png|woff?2)$ | |
RewriteCond %{REQUEST_URI} ^/(kz|ru) | |
RewriteCond %{REQUEST_URI} !-f | |
RewriteCond %{REQUEST_URI} !-d | |
RewriteRule ^(.*)$ index.php?$1 [END,QSA] | |
Route-пен жұмыс істеу, әр түрлі жолдарға | |
function Back(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment