Search
 
SCRIPT & CODE EXAMPLE
 

PHP

how to enable pretty url in yii2

'urlManager' => [
    'class' => 'yiiwebUrlManager',
    // Disable index.php
    'showScriptName' => false,
    // Disable r= routes
    'enablePrettyUrl' => true,
    'rules' => array(
            '<controller:w+>/<id:d+>' => '<controller>/view',
            '<controller:w+>/<action:w+>/<id:d+>' => '<controller>/<action>',
            '<controller:w+>/<action:w+>' => '<controller>/<action>',
    ),
],
Comment

how to enable pretty url in yii2

RewriteEngine on
# If a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Otherwise forward it to index.php
RewriteRule . index.php
Comment

PREVIOUS NEXT
Code Example
Php :: how to get structure of table in codeigniter 
Php :: replace exact word in php 
Php :: how to write tests for php 
Php :: laravel realation with has 
Php :: static php 
Php :: get current day php 
Php :: how to return chunk data laravel 
Php :: git pull using php 
Php :: laravel migrate test environment 
Php :: config file php 
Php :: contact form 7 checkbox2 
Php :: move_uploaded_file 
Php :: create email template php 
Php :: get file size in php 
Php :: php array filter specific keys 
Php :: how to install laravel 
Php :: use php var in js 
Php :: install php 7.1 on ubuntu 18.04 
Php :: get category of current post wordpress 
Php :: php json_decode not working 
Php :: parsing html in php 
Php :: laravel delete multiple rows 
Php :: php include external directory path 
Php :: throw 403 laravel 
Php :: php curl empty response 
Php :: javascript function in php json_encode 
Php :: db seed in controller 
Php :: laravel validation string type 
Php :: convert array to IlluminateHttpRequest 
Php :: Laravel nova resolveUsing 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =