Yii is a awesome framework that does many things automatically. As you know, the default installation of Yii App makes site accessible via URL ‘http://www.example.com/basic/web/index.php’ or something like this but in a production server you may wish to hide or remove basic/web from URL in Yii 2.0 as well as access it with SEO friendly URL (‘http://www.example.com/controller/action’).
Tag » URL
Hide or remove controller name from url in Yii 2.0
You can hide or remove controller name from url in Yii 2.0 through configuring rules for urlManager component. You can hide controller name from url even if your pages are generated dynamically using database after reading this article.
First of all you have to enable pretty permalinks. After that letβs try to understand how to configure application rules by simple examples.
Creating SEO friendly URL in Yii 2.0 framework
Yii 2.0 framework has a major improvement over version 1.1. Creating SEO friendly URL in Yii 2.0 framework has been a lot easier. All is just turning pretty url ‘on’ to your Yii application and writing very few rewrite rules in htaccess file, enough to hide index.php from your URL and to make them SEO friendly.
Getting query string values in javascript
Sometimes we get the important data through query string but question is of getting query string values in javascript or jquery because we need these values at client side. Even we can do it by using only javascript also.
Add Link to Copied Text
Do you want to add a link back to your website or page when someone copy content from your website or want to show some custom message (like copyright) instead of copied content or just don’t want to let user copy then Add Link to Copied Text Plugin can do that for you.
You can know more and download this plugin via clicking the Continue Reading link given below: