A Vanity URL is a URL approach used in many websites to make shorter URLs for example to access user’s profiles.
You can create personalized Vanity URL in CodeIgniter applications in different ways. In CodeIgniter 1.7.x and 2 you can override the routes class to include a custom code, as pointed here.
SosInformatico extended the Route class to support vanity URL under a project using HMVC. You can learn more about this approach here, despite the webpage is in Spanish.
What is the advantage of using Vanity URL in CodeIgniter or any other application?
Some application architects and also SEO experts use the vanity URL for username like in Social networking sites like MySpace, Twitter, Facebook and many other to avoid the /user/ segment in the URL and make them shorter.
This may have some benefits if you want for example avoid someone to run a site:<yoursite>/user/ and get a big list of users indexed in the search engine but also to uniform the URLs making them more clear to the end user and easier to remember. One of the major benefits of vanity URL in twitter is that easily you can access the Twitter page for a given user by just adding the username after the domain name.
Related searches:
- codeigniter vanity url
- codeigniter vanity urls
- codeigniter url like facebook
- codeigniter uri user
- hmvc segment
- url like twitter in codeigniter
- user url like facebook codeigniter
- codeingiter i18n url
- vaniti url en twitter
- codeigniter vanity url routes