.htaccess - how to completely hide the url in yii2 -
Using yii2, I am creating a page to display the result of a category, and the URL is stuck in the rules I am
Now, I have a category named Training Centers
and this category's ID is 5
and in this category the Education Controller will list action Need to pass along.
I have to write a rule of yii2,
'training-centers' = & gt; Can
How do we use it? Htacess?
After enabling the beautiful URL, it does not work with
; Rev. Training centers index.php? R = Education List and ID = 5
How can we write in URLs, where can not be identified in the Controller / Action / ID URL?
Try this code:
'urlManager' = & gt; ['Rule' = & gt; ['Training-Center' = & gt; 'Index.php? R = education list & amp; Id = 5 ']],
or .htaccess
rewrite ^ training center $ / education / list /? Id = 5
Comments
Post a Comment