Solved

CL

Posted on 2011-09-02
5
174 Views
Last Modified: 2012-05-12
Hi i just begin study codeigniter and i have a problem i want to make short link like
http:/website.com/page/index/page/about_us/
to
http:/website.com/page/about_us/

How i can do it in codeigniter
0
Comment
Question by:umaxim
  • 2
  • 2
5 Comments
 
LVL 17

Expert Comment

by:psimation
Comment Utility
You can use URL re-writing to do this. On Apache, you can use rewriting rules in your .htaccess file in the root of the website.
0
 
LVL 1

Author Comment

by:umaxim
Comment Utility
i try it is not working can you give some example
0
 
LVL 17

Accepted Solution

by:
psimation earned 500 total points
Comment Utility
Have a look here.

About halfway through, there is an example that should fit your need exactly.

http://www.workingwith.me.uk/articles/scripting/mod_rewrite
0
 
LVL 108

Expert Comment

by:Ray Paseur
Comment Utility
You can make short links with the service from Bit.LY -- very useful!
https://bitly.com/
0
 
LVL 1

Author Comment

by:umaxim
Comment Utility
But what about special function in codeigniter to replace link to make it shorter. How it works
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Both Easy and Powerful How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php)  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now